Kubernetes Interview Questions and Answers
Ques 11. What is a Kubernetes ConfigMap?
A ConfigMap is a Kubernetes resource that allows you to decouple configuration artifacts from the container image, making it easier to manage configurations for different environments.
Ques 12. Explain the purpose of a Kubernetes Secret.
A Secret is used to store sensitive information such as passwords, API keys, and tokens. It ensures that confidential data is not exposed in the configuration or environment variables.
Ques 13. What is the role of Kubernetes Controllers?
Controllers in Kubernetes are control loops that regulate the state of the system. Examples include ReplicaSet (ensures a specified number of replicas), and StatefulSet (maintains stateful applications).
Ques 14. 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 15. What is Kubernetes RBAC (Role-Based Access Control)?
RBAC is a Kubernetes feature that provides a flexible system for defining roles and permissions within a cluster. It allows administrators to control access to resources based on roles and role bindings.
Most helpful rated by users: