Correct Answer: kubectl drain <node-name> --ignore-daemonsets
The 'kubectl drain' command safely evicts all of your pods from a node before you perform maintenance. You usually need '--ignore-daemonsets' to bypass system pods that are require...
Correct Answer
kubectl drain <node-name> --ignore-daemonsets
Why This Answer Is Correct
The 'kubectl drain' command safely evicts all of your pods from a node before you perform maintenance. You usually need '--ignore-daemonsets' to bypass system pods that are required to run on every node.
This question evaluates your knowledge of Kubernetes Administration — a core concept tested in cloud certification exams. Understanding Kubernetes Administration is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.
A cluster administrator needs to perform maintenance on a node and wants to gracefully evict all running pods from it, while ensuring the pods are rescheduled on other active nodes. Which kubectl command should be executed?
A Kubernetes node has transitioned to the 'NotReady' state, and the status conditions show DiskPressure=True. Which behavior is Kubernetes most likely to perform on this node for non-daemonset pods?
You need to introduce a custom configuration resource type named AppRoute to your cluster, validating its fields (like port must be an integer) before it is persisted in etcd. Which native Kubernetes mechanism should you implement?
You need to grant read-only access to all namespaces in the cluster to a group of developers who authenticate via an OIDC provider. What RBAC configuration is most operationally efficient?