Kubernetes 面试题与答案
问题 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.
问题 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.
问题 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).
问题 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.
问题 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.
用户评价最有帮助的内容: