Question 36

You have a Kubernetes cluster where different teams manage applications in different namespaces. You want to enable a team to manage their resources in a specific namespace while preventing them from accessing resources in other namespaces.

Question 37

You need to set up a load balancer for your Nginx service with the following requirements:
- Session affinity: Preserve client sessions across multiple pods, even if the pod is restarted or rescheduled.
- Health checks: Regularly check the health of Nginx pods and automatically remove unhealthy pods from the load balancer pool.
- Custom header: Add a custom header with the name "X-App-Version" and value "vl .0" to all requests to your Nginx service. How would you configure your Kubernetes resources to meet these requirements?

Question 38

You are deploying an application on Kubernetes that requires access to a specific external service. This service is only accessible from the cluster network. Describe how you can implement a NetworkPolicy to secure access to the external service from the application pods.

Question 39

List "nginx-dev" and "nginx-prod" pod and delete those pods
  • Question 40

    Score: 4%

    Task
    Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app-data .