Question 1

Task:
Update the Pod ckad00018-newpod in the ckad00018 namespace to use a NetworkPolicy allowing the Pod to send and receive traffic only to and from the pods web and db

Question 2
Refer to Exhibit.

Task:
Create a Deployment named expose in the existing ckad00014 namespace running 6 replicas of a Pod.
Specify a single container using the ifccncf/nginx: 1.13.7 image Add an environment variable named NGINX_PORT with the value 8001 to the container then expose port 8001

Task:
Create a Deployment named expose in the existing ckad00014 namespace running 6 replicas of a Pod.
Specify a single container using the ifccncf/nginx: 1.13.7 image Add an environment variable named NGINX_PORT with the value 8001 to the container then expose port 8001
Question 3
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.
Question 4
Refer to Exhibit.

Set Configuration Context:
[student@node-1] $ | kubectl
Config use-context k8s
Task
You have rolled out a new pod to your infrastructure and now you need to allow it to communicate with the web and storage pods but nothing else. Given the running pod kdsn00201 -newpod edit it to use a network policy that will allow it to send and receive traffic only to and from the web and storage pods.



Set Configuration Context:
[student@node-1] $ | kubectl
Config use-context k8s
Task
You have rolled out a new pod to your infrastructure and now you need to allow it to communicate with the web and storage pods but nothing else. Given the running pod kdsn00201 -newpod edit it to use a network policy that will allow it to send and receive traffic only to and from the web and storage pods.


Question 5
You are running a critical application that requires high availability and minimal downtime during updates. Your current deployment strategy uses a single Deployment with 3 replicas. You need to ensure that during updates, only one pod is unavailable at any given time, minimizing service disruption. Design a deployment strategy that meets this requirement and allows for seamless updates.