Deleting a Deployment

Kubernetes schedules resources on the worker nodes based on the availability of resources. If you are using a small cluster with limited CPU and memory resources, you may easily run out of resources, which would cause new Deployments to fail to get scheduled on worker nodes. Therefore, unless it is mentioned in the requirement of the recipe, always clean up the old Deployments before you move onto the next recipe.  

Let's perform the following step to remove nginx-deployment:

  1. Delete the Deployment before moving onto the next recipes:
$ kubectl delete deployment nginx-deployment

The preceding command will immediately terminate the Deployment and remove the application from your cluster.

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

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