Question 76

You need to create a new role that allows users to create and delete pods, but only in the
'production' namespace. How would you define this role using the 'kubectl' command?

Question 77

Create a deployment as follows:
* Name: nginx-random
* Exposed via a service nginx-random
* Ensure that the service & pod are accessible via their respective DNS records
* The container(s) within any pod(s) running as a part of this deployment should use the nginx Image Next, use the utility nslookup to look up the DNS records of the service & pod and write the output to
/opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.

Question 78

To protect your firewall and network from single source denial of service (DoS) attacks that can overwhelm its packet buffer and cause legitimate traffic to drop, you can configure:
  • Question 79

    Create a Kubernetes secret asfollows:
    * Name: super-secret
    * password: bob
    Create a pod namedpod-secrets-via-file Image, which mounts a secret namedsuper-secretat
    /secrets.
    Create a second pod namedpod-secrets-via-env Image, which exportspasswordas CONFIDENTIAL

    Question 80

    Create an nginx pod which reads username as the environment variable