What are the pause containers?

后端 未结 4 1661
天命终不由人
天命终不由人 2021-02-07 07:19

In my IBM Cloud Private, I see several pause containers.

Can anyone explain the purpose of these? Normally, I can get to the bash shell in a running container but not th

相关标签:
4条回答
  • 2021-02-07 07:49

    The 'pause' container is a container which holds the network namespace for the pod. Kubernetes creates pause containers to acquire the respective pod’s IP address and set up the network namespace for all other containers that join that pod.

    You can access below links for details.

    https://groups.google.com/forum/#!topic/kubernetes-users/jVjv0QK4b_o

    https://www.ianlewis.org/en/almighty-pause-container

    0 讨论(0)
  • 2021-02-07 07:54

    yes, the pause container is part of each pod that is responsible to create shared network, assign ip address within the pod for all business containers inside this pod, also the pause container shared the volume for entire pod. If the pause container is dead, kubernetes consider the pod died and kill it and reschedule a new one.

    0 讨论(0)
  • 2021-02-07 07:54

    Pause is a secret container that runs on every pod in Kubernetes. This container’s primary job is to keep the namespace open in case all the other containers on the pod die.

    0 讨论(0)
  • 2021-02-07 08:01

    If you docker stop the pause container, you would find that the Pod would have a new internal IP without any change in Restart count of the Pod. However, if you docker stop the container of the Pod, you would find the Pod status as Completed and then if you would docker start the same, you would find Pod in Running again with Restart count of the Pod incremented by 1 with no change in IP.

    0 讨论(0)
提交回复
热议问题