Question 61

Context
You are tasked to create a secret and consume the secret in a pod using environment variables as follow:
Task
* Create a secret named another-secret with a key/value pair; key1/value4
* Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key 1, using COOL_VARIABLE as the name for the environment variable inside the pod See the solution below.
Question 62
You nave a multi-container pod tnat uses a database container and an application container. The database container is responsible for storing sensitive datm You need to ensure that the database container only runs on nodes that have a specific label, like 'sensitive-data=true', for added security. How would you implement this constraint using Pod Affinity and node selectors?
Question 63
You have a Deployment named that runs 3 replicas of a Wordpress container. You need to implement a rolling update strategy that allows for a maximum or two pods to be unavailable at any given time during the update process. Additionally, you want to ensure that the update process is triggered automatically whenever a new image is pushed to the Docker Hub repository 'wordpress/wordpress:latest'.
Question 64
Context

Task:
1) Fix any API depreciation issues in the manifest file -/credible-mite/www.yaml so that this application can be deployed on cluster K8s.

2) Deploy the application specified in the updated manifest file -/credible-mite/www.yaml in namespace cobra

Task:
1) Fix any API depreciation issues in the manifest file -/credible-mite/www.yaml so that this application can be deployed on cluster K8s.

2) Deploy the application specified in the updated manifest file -/credible-mite/www.yaml in namespace cobra
Question 65
You have a multi-container Pod that needs to perform some initialization tasks before the main application containers Stan. These tasks involve setting up a database connection, downloading a configuration file, or running some pre-flight checks. Design a Pod configuration that utilizes an init container to handle these tasks before tne main application containers start Ensure that your solution includes the necessary steps to handle potential errors encountered during the initialization process.












