Pod、 Service、Volume、Namespace是kubernetes对象模型中的四大基本对象
最小且最简单的对象
能够独立启动一个后端进程并在集群内部为调用方提供服务

本文总结Pod的相关内容:

  • 特性

kubeGenericRuntimeManager#SyncPod

_ SyncPod syncs the running pod into the desired pod by executing following steps:

  1. Compute sandbox and container changes.
    2. Kill pod sandbox if necessary.
    3. Kill any containers that should not be running.
    4. Create sandbox if necessary.
    5. Create ephemeral containers.
    6. Create init containers.
    7. Create normal containers._

explain

  • sandbox
  • containers
    • ephemeral containetrs
    • init containers

init settinfs ,初始化设置,优先于normal containers启动

  • normal containers

对外提供服务或者为工作节点处理异步任务等等

Pod中值得关注的点

容器

网络

References