What is the difference between a pod and a deployment?

后端 未结 8 544
一向
一向 2020-11-30 16:56

I have been creating pods with type:deployment but I see that some documentation uses type:pod, more specifically the documentation for multi-conta

8条回答
  •  庸人自扰
    2020-11-30 16:59

    Pod is a collection of containers and basic object of Kuberntes. All containers of pod lie in same node.

    • Not suitable for production
    • No rolling updates

    Deployment is a kind of controller in Kubernetes.

    Controllers use a Pod Template that you provide to create the Pods for which it is responsible.

    Deployment creates a ReplicaSet which in turn make sure that, CurrentReplicas is always same as desiredReplicas .

    Advantages :

    • You can rollout and rollback your changes using deployment
    • Monitors the state of each pod
    • Best suitable for production
    • Supports rolling updates

提交回复
热议问题