Kcna Kubernetes And Cloud Native Associate · Free Practice Question Easy
Question 22
What is the well-known local directory that kubelet periodically checks to deploy and manage static pods?
-
A
/etcd/shared/manifests -
B
/etc/kubernetes/manifests -
C
/kubernetes/pods -
D
/usr/bin
Reveal correct answer
Correct answer: B
Explanation
The local directory that the kubelet periodically checks to deploy static pods is typically located at: /etc/kubernetes/manifests/
Static pods are defined by YAML or JSON manifests placed in this directory on the node where the kubelet is running. The kubelet monitors this directory and automatically starts and manages pods based on the manifest files it finds. This feature is useful for deploying system-level or node-specific pods that don't go through the Kubernetes API server and controller-manager.
https://kubernetes.io/docs/reference/setup-tools/kubeadm/implementation-details
A. The directory /etcd/shared/manifests is not the correct well-known local directory that kubelet checks to deploy and manage static pods. Kubelet does not check this directory for static pod deployment and management; it specifically looks in the /etc/kubernetes/manifests directory.
B. The directory /etc/kubernetes/manifests is the well-known local directory that kubelet periodically checks to deploy and manage static pods. Static pods are defined by static PodSpec files placed in this directory, allowing kubelet to manage them without the need for a Kubernetes API server.
C. The directory /kubernetes/pods is not the correct well-known local directory that kubelet checks to deploy and manage static pods. Kubelet specifically looks for static PodSpec files in the /etc/kubernetes/manifests directory for managing static pods.
D. The directory /usr/bin is not the correct well-known local directory that kubelet checks to deploy and manage static pods. This directory is typically used for storing executable binary files, not for managing static pods in Kubernetes. Kubelet looks in the /etc/kubernetes/manifests directory for static pod deployment and management.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
