FREE CKA Cluster Architecture, Installation, and Configuration Questions and Answers
What is the role of the kube-apiserver in a Kubernetes cluster?
The kube-apiserver acts as the central management point of a Kubernetes cluster. It provides an HTTP REST interface for the control plane components, nodes, and external users to communicate with the cluster. It validates and processes API requests.
Which command initializes a Kubernetes control plane node using kubeadm?
The kubeadm init command is used to initialize a Kubernetes cluster by setting up the control plane components on a node. The kubeadm join command is used for adding worker nodes to the cluster. The other commands do not serve this purpose.
Which component of a Kubernetes cluster stores the configuration data in a key-value store?
etcd is the distributed key-value store used by Kubernetes to store all configuration data, including the state of the cluster. It is a critical component of the control plane.
What command is used to apply a Pod network in a Kubernetes cluster after initialization?
After initializing a Kubernetes cluster with kubeadm init, a Pod network must be applied to enable communication between Pods. This is done using kubectl apply -f with the appropriate YAML manifest for a CNI plugin (e.g., Calico or Flannel). The other commands are not valid for applying a Pod network.
What is the purpose of a kube-scheduler in Kubernetes?
The kube-scheduler is responsible for assigning newly created Pods to suitable nodes based on resource requirements, taints, tolerations, and other scheduling constraints.