How it works...

The Creating a Deployment recipe showed you how to apply the desired state of your pods and ReplicaSets to the Deployment controller using YAML manifest files. 

In step 2, we used the kubectl apply command, which is a part of the declarative management approach and makes incremental changes rather than overwriting them. The first time you create a resource intent, you could instead use the kubectl create command, which is considered an imperative management method. 

I prefer to use the apply command, where declarative patterns are allowed, instead of create since it is better for creating the CI script and does not raise an error if the resource already exists. 

Now you have learned the fundamental steps to get a single Deployment running in Kubernetes, we can move on to more complex Deployment use cases to compose a collection of objects using Kustomize, Helm, and Operator frameworks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.30.19