Kubernetes - Rolling update killing off old pod without bringing up new one

后端 未结 3 2303
醉酒成梦
醉酒成梦 2021-02-20 09:39

I am currently using Deployments to manage my pods in my K8S cluster.

Some of my deployments require 2 pods/replicas, some require 3 pods/replicas and some of them requi

3条回答
  •  星月不相逢
    2021-02-20 10:31

    with Strategy Type set to RollingUpdate a new pod is created before the old one is deleted even with a single replica. Strategy Type Recreate kills old pods before creating new ones https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#rolling-update-deployment

提交回复
热议问题