kubectl apply vs kubectl create?

前端 未结 9 1464
[愿得一人]
[愿得一人] 2020-11-29 15:06

What I understood by the documentation is that:

  • kubectl create = Creates a new k8s resource in the cluster
  • kubectl replace
9条回答
  •  迷失自我
    2020-11-29 15:29

    We love Kubernetes is because once we give them what we want it goes on to figure out how to achieve it without our any involvement.

    "create" is like playing GOD by taking things into our own hands. It is good for local debugging when you only want to work with the POD and not care abt Deployment/Replication Controller.

    "apply" is playing by the rules. "apply" is like a master tool that helps you create and modify and requires nothing from you to manage the pods.

提交回复
热议问题