Question 16

You have a Deployment named 'database-deployment' with 2 replicas of a database container. You want to implement a rolling update strategy that allows for a maximum of one pod to be unavailable at any given time. However, you also want to ensure that the database container is restarted automatically when it encounters a failure or crashes. This restart policy should be applied only to the database containers within the deployment and not affect any other containers in the same pod.

Question 17

You have a Deployment named 'web-app' running a web application with two pods. The web application is configured to access a database with the connection string stored in a ConfigMap named 'db- config'. You need to update the database connection string in the ConfigMap without restarting the pods.

Question 18

Get list of all the nodes with labels

Question 19

Check logs of each container that "busyboxpod-{1,2,3}"
  • Question 20

    Create an nginx pod with container Port 80 and it should only receive traffic only it checks the endpoint / on port 80 and verify and delete the pod.