Topic 1 Question 224
You plan to deploy a new application revision with a Deployment resource to Google Kubernetes Engine (GKE) in production. The container might not work correctly. You want to minimize risk in case there are issues after deploying the revision. You want to follow Google-recommended best practices. What should you do?
Perform a rolling update with a PodDisruptionBudget of 80%.
Perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
Convert the Deployment to a StatefulSet, and perform a rolling update with a PodDisruptionBudget of 80%.
Convert the Deployment to a StatefulSet, and perform a rolling update with a HorizontalPodAutoscaler scale-down policy value of 0.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: A👍 1kisswd2022/12/04
- 正解だと思う選択肢: A
A is the answer.
https://cloud.google.com/blog/products/containers-kubernetes/ensuring-reliability-and-uptime-for-your-gke-cluster Setting PodDisruptionBudget ensures that your workloads have a sufficient number of replicas, even during maintenance. Using the PDB, you can define a number (or percentage) of pods that can be terminated, even if terminating them brings the current replica count below the desired value. With PDB configured, Kubernetes will drain a node following the configured disruption schedule. New pods will be deployed on other available nodes. This approach ensures Kubernetes schedules workloads in an optimal way while controlling the disruption based on the PDB configuration.
👍 1zellck2022/12/08 - 正解だと思う選択肢: A👍 1TNT872022/12/27
シャッフルモード