Kubernetes Interview Questions and Answers
Experienced / Expert level questions & answers
Ques 1. Explain the concept of Persistent Volumes (PV) in Kubernetes.
Persistent Volumes are used to store data in a cluster independently of Pods. They are provisioned by administrators and can be dynamically or statically provisioned.
Ques 2. Explain Kubernetes Rolling Deployment strategy.
In a Rolling Deployment, new versions of the application are gradually rolled out to the instances, minimizing downtime. It ensures that the application is available throughout the deployment.
Ques 3. Explain the difference between a StatefulSet and a Deployment in Kubernetes.
StatefulSets are used for stateful applications requiring stable network identities and persistent storage. Deployments are suitable for stateless applications that can scale horizontally.
Ques 4. Explain the difference between a DaemonSet and a Deployment in Kubernetes.
A DaemonSet ensures that all or some nodes run a copy of a Pod, while a Deployment is used for stateless applications. DaemonSets are typically used for background tasks or system-level services.
Ques 5. Explain the concept of Kubernetes Network Policies.
Network Policies are used to control the communication between Pods. They define rules for incoming and outgoing traffic, allowing administrators to enforce network segmentation and security.
Ques 6. What is a Kubernetes Operator?
An Operator is a method of packaging, deploying, and managing a Kubernetes application. It extends the Kubernetes API to automate complex, stateful applications and services.
Ques 7. Explain the concept of Kubernetes Resource Quotas.
Resource Quotas allow cluster administrators to limit resource consumption in a namespace. It helps prevent individual projects or users from consuming excessive resources.
Most helpful rated by users: