Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.
Actual exam question for Linux Foundation's CKA exam Question #: 5 Topic #: 4
You have a Deployment named 'web-app' with 3 replicas running a Flask application. You need to implement a rolling update strategy that ensures only one pod is unavailable at any time. Additionally, you need to implement a strategy to handle the update process when the pod's resource requests exceed the available resources.
Suggested Answer:
See the solution below with Step by Step Explanation. Explanation: Solution (Step by Step) : 1. Update the Deployment YAML: - Update the 'replicas' to 2. - Define 'maxUnavailable: 1' and 'maxSurge: 0' in the 'strategy.rollingUpdate' section to control the rolling update process. - Configure a 'strategy.type" to 'RollingUpdate" to trigger a rolling update when the deployment is updated. - Add a 'spec.template.spec.resources' section to define resource requests for the pod. - Set 'spec.template.spec.restartPolicy' to 'OnFailure' for the pod to restart when it fails. 2. Create the Deployment: - Apply the updated YAML file using 'kubectl apply -f web-app.yaml' 3. Verify the Deployment: - Check the status of the deployment using 'kubectl get deployments web-app' to confirm the rollout and updated replica count. 4. Trigger the Automatic Update: - Update the 'web-app' image in the Docker Hub repository. 5. Monitor the Deployment: - Use 'kubectl get pods -l app=web-app' to monitor the pod updates during the rolling update process. You will observe that one pod is terminated at a time, while one new pod with the updated image is created. 6. Handle Resource Exceedance: - If the pod's resource requests exceed the available resources, the pod will be evicted and restarted. The 'restartPolicy' ensures that the pod restarts automatically upon failure. 7. Check for Successful Update: - Once the deployment is complete, use 'kubectl describe deployment web-app' to see that the 'updatedReplicas' field matches the 'replicas' field, indicating a successful update.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up / login
(it's free).
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).