Study FAQ
How do Pods, Deployments, and Services work together in a VKS cluster?
Also asked as 2
- Why does a stateless app commonly use a Deployment and a Service in VKS?
- Which Kubernetes objects run replicas and give them a stable network endpoint?
Answer
A Pod runs one or more related containers. For a stateless application in a VKS cluster, a Deployment declares the desired Pod replicas and manages changes through ReplicaSets. A Service provides a stable address or name for reaching the selected backends while Pods are replaced.
For example, a three-replica Deployment can maintain Pods labelled app: payments. A Service with that selector discovers matching Pods. When a Pod is replaced during a rollout, the Service name stays the same and Kubernetes updates the backend endpoints. If the selector misses the Pod labels, the Service can exist with no matching backends. Check both the selector and endpoint readiness when verifying the path.
A default ClusterIP Service is for access within the cluster. External exposure requires a suitable service, ingress, or gateway design and the corresponding infrastructure.
Full explanation
Kubernetes Fundamentals for VMware vSphere Administrators
Study guide · 3V0-24.25
Read the full explanation