Question 26

Create a deployment as follows:
* Name:nginx-random
* Exposed via a servicenginx-random
* Ensure that the service & podare accessible via theirrespective DNS records
* The container(s) within anypod(s) running as a part of thisdeployment should use thenginxImage Next, use the utilitynslookupto lookup the DNS records of the service &pod and write the output to
/opt/KUNW00601/service.dnsand/opt/KUNW00601/pod.dnsrespectively.

Question 27

Create a pod named kucc8 with a single app container for each of the
following images running inside (there may be between 1 and 4 images specified):
nginx + redis + memcached.

Question 28

You have a 'NodePort' service named 'my-service' exposed on port 30000. You need to configure a NetworkPolicy to only allow access to the service from specific nodes in the cluster based on their node labels.

Question 29

Create an nginx pod with container Port 80 and it should only receive traffic only it checks the endpoint / on port 80 and verify and delete the pod.
  • Question 30

    Your team has deployed a containerized application on Kubernetes. You have configured a deployment with a replica count of 3 pods. The application uses a resource-intensive process that consumes a significant amount of CPU resources. You are experiencing performance issues and suspect that the pods are competing for resources. Explain how you can use resource quotas and limits to address this problem.