May 2018
Intermediate to advanced
554 pages
13h 51m
English
If you followed the previous pages for the Kubernetes resource, you may have gotten the idea that the subcommand delete is used to remove resources. It is workable in the case of removing a Namespace. At the same time, if we try to delete a Namespace, the resources under it will be removed, as well:
// first, go ahead to remove the Namespace "my-namespace"$ kubectl delete ns my-namespacenamespace "my-namespace" deleted// check the Deployment again, the exited "my-nginx" is terminated$ kubectl get deploymentNo resources found.// while trying to create anything, the error message showing the default Namespace is not existed$ kubectl run my-alpine --image=alpineError from server (NotFound): namespaces "my-namespace" not ...
Read now
Unlock full access