What I understood by the documentation is that:
-
Creates a new k8s resource in the clusterkubectl create
-
Updates a resource in the live clusterkubectl replace
-
If I want to do create + replace (Reference)kubectl apply
My questions are
- Why are there three operations for doing the same task in a cluster?
- What are the use cases for these operations?
- How do they differ from each other under the hood?