Execute below command to delete everything from the current namespace.
kubectl delete all --all
$kubectl delete all --all
pod "hello-node-59fddbb58-h5mgt" deleted
pod "hello-node-59fddbb58-rv8wt" deleted
pod "hello-node-59fddbb58-s2lrj" deleted
pod "hello-node-from-file-c67467bd7-8xq6d" deleted
pod "user-service-67b679f45f-bllwj" deleted
service "hello-node" deleted
service "hello-node-from-file" deleted
service "helloworld-all-service" deleted
service "kubernetes" deleted
service "user-service" deleted
deployment.apps "hello-node" deleted
deployment.apps "hello-node-from-file" deleted
deployment.apps "user-service" deleted
replicaset.apps "user-service-67b679f45f" deleted
You can confirm the same by executing ‘kubelet get *’ commands.
$kubectl get services
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 59s
$
$kubectl get deployments
No resources found in default namespace.
$
$kubectl get rs
No resources found in default namespace.
$
$kubectl get pods
No resources found in default namespace.
No comments:
Post a Comment