Stateful Sets Flashcards
What is the role of a Stateful Set in Kubernetes?
The role of a Stateful Set is to manage stateful applications in Kubernetes, providing each pod with a unique and persistent identity.
How does a Stateful Set assign unique identifiers to its pods?
Each pod in a Stateful Set is assigned a unique identifier in the form of a sequence number appended to the Stateful Set name.
What is the key feature of Stateful Sets regarding pod creation and deletion?
Stateful Sets ensure that pods are created and deleted in a specific order, maintaining the order of pod creation and deletion.
What is the significance of setting the cluster IP to “None” in a Headless Service associated with a Stateful Set?
Setting the cluster IP to “None” creates a Headless Service, allowing each pod to have its own DNS entry and enabling direct communication with individual pods.
How do you delete Persistent Volume Claims (PVCs) associated with a Stateful Set when deleting the Stateful Set itself?
Deleting a Stateful Set will not automatically delete the associated PVCs. You must manually delete the PVCs if needed.
What is Kubernetes Helm?
Helm is a package manager for Kubernetes that simplifies the deployment and management of Kubernetes applications using charts, which are pre-configured templates.
What is a Kubernetes ConfigMap?
A ConfigMap is a Kubernetes resource that stores configuration data separately from application code, allowing you to configure applications without changing their code.
What is a Kubernetes Secret?
A Secret is a Kubernetes resource for storing sensitive information like passwords, API keys, and tokens. It’s encoded and can be used by Pods securely.
What is Kubernetes RBAC?
RBAC (Role-Based Access Control) is a Kubernetes feature that defines and enforces access control policies, allowing fine-grained control over who can perform actions within the cluster.
What is a Kubernetes Persistent Volume (PV)?
A Persistent Volume (PV) in Kubernetes is a piece of networked storage that can be dynamically provisioned and bound to a Persistent Volume Claim (PVC) by Pods.
What is Kubernetes StatefulSet?
A StatefulSet is a Kubernetes resource used for deploying stateful applications, ensuring that Pods have stable network identities and storage.
What is Kubernetes Horizontal Pod Autoscaling (HPA)?
Horizontal Pod Autoscaling is a Kubernetes feature that automatically adjusts the number of replica Pods in a Deployment or StatefulSet based on resource usage or custom metrics.
What is Kubernetes Kubeconfig?
Kubeconfig is a file used to configure access to a Kubernetes cluster. It contains cluster information, user credentials, and context settings.
What is a Kubernetes Helm Chart?
A Helm Chart is a package of pre-configured Kubernetes resources used for deploying applications. It simplifies application deployment and management.
What is Kubernetes etcd?
etcd is a distributed key-value store used by Kubernetes to store configuration data and manage cluster state.
What is Kubernetes CNI (Container Network Interface)?
CNI is a standard for network plugins in Kubernetes, allowing different networking solutions to be used within a cluster for container networking.
What is the purpose of a Stateful Set in Kubernetes?
A Stateful Set is used to manage stateful applications and provides stable network identities for individual pods.
How does a Stateful Set differ from a Deployment in Kubernetes?
Unlike Deployments, Stateful Sets maintain a stable and unique identity for each pod, and they are suitable for stateful applications like databases.