Middle
What is the difference between Pod, Deployment, and Service in Kubernetes?
sobes.tech AI
Answer from AI
Pod — is the smallest deployable unit in Kubernetes, which contains one or more containers running on the same host and sharing network and storage.
Deployment — is a controller that manages the creation and updating of Pods. It provides declarative updates for applications, scaling, and automatic recovery of Pods in case of failures.
Service — is an abstraction that provides a persistent network endpoint to a set of Pods, usually through an internal IP and DNS name. Service enables load balancing and provides a stable endpoint despite the dynamic creation and deletion of Pods.
In summary:
- Pod — containers and their environment.
- Deployment — manages the lifecycle of Pods.
- Service — network access to Pods.