Study. uk . com
  1. Home
  2. All questions
  3. Question 578

CKA study material · question 578 of 1000

During a kubeadm upgrade that also restarts etcd, in-flight API requests stall. Which mitigation is documented?

  1. Drain the node, which stops the API server static Pod
  2. Gracefully stop kube-apiserver a few seconds before running the upgrade
  3. Scale the etcd StatefulSet to zero first
  4. Set --etcd-servers to an empty list for the duration
Show the answer

Answer: B. Gracefully stop kube-apiserver a few seconds before running the upgrade

Draining does not stop the API server static Pod, so it keeps accepting work while etcd restarts. Sending SIGTERM to kube-apiserver first lets in-flight requests finish and shortens the disruption.

Source: Upgrading kubeadm clusters (Kubernetes) — Considerations when upgrading etcd

Challenge yourself on this topic → Study as cards