Kubernetes Pod fundamentals¶
A Pod is the smallest and simplest unit in the Kubernetes object model that you create or deploy.^[原理及源码解析__README.md]
Core Concepts¶
Instead of running a single container, Kubernetes wraps one or more containers into a Pod.^[原理及源码解析__README.md] Containers within a Pod are deployed together on the same host and share resources, making them the fundamental building blocks of the Kubernetes platform.^[原理及源码解析__README.md]
Pods operate under specific states and are managed through configuration definitions. Understanding these states and the meanings of key configuration fields is essential for operating the cluster effectively.^[原理及源码解析__README.md]
Pod Lifecycle and Management¶
Kubernetes manages the lifecycle of Pods through several defined states.^[原理及源码解析__README.md] These states indicate the phase of the Pod's life, such as whether it is running, pending, or has succeeded or failed.
Deployment strategies allow users to manage changes to Pod configurations without downtime. This is achieved through specific update mechanisms:
- Horizontal Scaling: Increasing or decreasing the number of Pod replicas to handle load.^[原理及源码解析__README.md]
- Rolling Upgrades: Gradually replacing old Pods with new versions to ensure continuous availability.^[原理及源码解析__README.md]
Related Concepts¶
- Kubernetes
- [[Docker]]
Sources¶
^[原理及源码解析__README.md]