Question 21

Score: 4%

Task
Check to see how many nodes are ready schedulable (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt.

Question 22

You have a Kubernetes cluster with two worker nodes and a single Nginx service deployed. You want to expose this service externally using a LoadBalancer service type but only want traffic to be directed to pods on a specific worker node. How would you achieve this?

Question 23

Get IP address of the pod - "nginx-dev"

Question 24

You have a Kubernetes cluster with a multi-tenant setup where different teams manage their own applications. You need to enforce a policy where only developers from the "engineering" team can create deployments for applications within the "dev" namespace. How would you implement this using RBAC?

Question 25

Score: 7%

Task
Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx.
Create a new service named front-end-svc exposing the container port http.
Configure the new service to also expose the individual Pods via a NodePort on the nodes on which they are scheduled.