Question 86
You have a Kubernetes cluster with a Deployment named 'wordpress-deployment running 3 replicas of a WordPress container. You want to expose this deployment as a service and ensure that the service only forwards traffic to the pods With the label 'version: v?. You need to create a service with the following requirements:
- The service name should be swordpress-service'
- The service should be of type 'Load8alancer' for external access.
- The service should only target pods with the label 'version: v?
- The service should expose port 80 on tne service, wmch maps to port 8080 in the WordPress container.

- The service name should be swordpress-service'
- The service should be of type 'Load8alancer' for external access.
- The service should only target pods with the label 'version: v?
- The service should expose port 80 on tne service, wmch maps to port 8080 in the WordPress container.

Question 87
You have a Kubernetes cluster with a Deployment named 'my-app' running a simple web application. The 'my-app' Deployment is configured to use a ServiceAccount named 'my-app-sa' _ You want to ensure that only authorized users with specific permissions can access the 'my-app' pod's logs. How would you implement this using Role-Based Access Control (RBAC)?
Question 88
You are running a web application that requires high availability and resilience. You have implemented a deployment using a Deployment object in Kubernetes, but you want to ensure that your application can automatically recover from pod failures. Design a strategy using annotations that will enable automatic pod restarts in case of application failures.
Question 89
You are deploying a new application named 'analytics-platform' that requires 12 replicas. You want to implement a rolling update strategy that allows for a maximum ot three pods to be unavailable at any given time. However, you need to ensure that the update process iS triggered automatically whenever a new image is pushed to the Docker Hub repository 'analytics/analytics-platform:latest'.
Question 90

Task:
1) Create a secret named app-secret in the default namespace containing the following single key-value pair:
Key3: value1
2) Create a Pod named ngnix secret in the default namespace.Specify a single container using the nginx:stable image.
Add an environment variable named BEST_VARIABLE consuming the value of the secret key3.








