Exit DCA Docker Certified Associate (DCA)
Question 2 of 5
0% complete
Q2 Single choice

You are running only Kubernetes workloads on a worker node that requires maintenance, such as installing patches or an OS upgrade

Which command must be run on the node to gracefully terminate all pods on the node, while marking the node as unschedulable?

  • A

    'docker node update --availability drain <node name>'

  • B

    'docker swarm leave'

  • C

    'kubectl drain <node name>'

  • D

    'kubectl cordon <node name>'