Question 41
You have a Deployment running a container image for a web application. The application's configuration files are currently stored within the image itself. you want to move the configuration files to a ConfigMap so that they can be updated independently or the application image. Describe the steps involved in modifying the Deployment and creating a ConfigMap to achieve this separation.
Question 42
You are managing a Kubernetes cluster that runs several microservices. One of these services, called "web-app", needs to have its pods scaled based on the current load. You have created a custom resource called "autoscaling.k8s.i0/v1 alphal" which represents the desired number of replicas for the "web-app" service- Implement a Kubernetes Controller that watches for changes in this custom resource and automatically scales the "web-app" Deployment accordingly.
Question 43

Context
It is always useful to look at the resources your applications are consuming in a cluster.
Task
* From the pods running in namespace cpu-stress , write the name only of the pod that is consuming the most CPU to file /opt/KDOBG030l/pod.txt, which has already been created.
Question 44
Context

Context
Your application's namespace requires a specific service account to be used.
Task
Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.

Context
Your application's namespace requires a specific service account to be used.
Task
Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.
Question 45
You are tasked With setting up a Kubernetes cluster With a service that exposes a web application, along with a database running as a stateful set The application needs to access the database through an internal IP address, but the database should not be accessible from outside the cluster. What are the steps involved to configure this, and what components should be used to achieve this setup?










