Kubernetes Interview Questions and Answers
Freshers / Beginner level questions & answers
Ques 1. What is Kubernetes and why is it used?
Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications. It helps in managing containerized applications in a clustered environment efficiently.
Ques 2. What is a Pod in Kubernetes?
A Pod is the smallest and simplest unit in the Kubernetes object model. It represents a single instance of a running process in a cluster and can contain one or more containers.
Ques 3. What is a Kubernetes Deployment?
A Deployment is a resource object in Kubernetes that provides declarative updates to applications. It allows you to describe a desired state for your application and automatically manages the deployment and scaling.
Ques 4. What is a Kubernetes Namespace?
A Namespace is a way to divide cluster resources between multiple users or projects. It helps in organizing and isolating resources within a cluster.
Ques 5. What is a Kubernetes Helm Chart?
Helm is a package manager for Kubernetes that simplifies the deployment and management of applications. A Helm Chart is a collection of pre-configured Kubernetes resources packaged for easy deployment.
Ques 6. Explain the concept of Kubernetes Labels and Selectors.
Labels are key-value pairs attached to objects (e.g., Pods). Selectors are used to filter and find objects based on labels, facilitating grouping and categorization of resources.
Ques 7. What is a Kubernetes liveness probe?
A liveness probe is a mechanism to detect whether a container is still running. If the liveness probe fails, Kubernetes can restart the container to maintain application availability.
Ques 8. What is the purpose of the Kubernetes HorizontalPodAutoscaler (HPA)?
The HPA automatically adjusts the number of Pods in a deployment or replica set based on observed resource utilization, such as CPU usage or custom metrics.
Ques 9. Explain the role of the Kubernetes kubelet component.
The kubelet is the primary node agent that runs on each node in the cluster. It ensures that containers are running in a Pod and communicates with the Kubernetes master to manage the Pod lifecycle.
Most helpful rated by users: