3.2.8 Cleaning up
View in the book.
Buy the book.
Delete the resources created so far:
$ kubectl delete deploy timeserver
deployment.apps "timeserver" deleted
$ kubectl delete service timeserver
service "timeserver" deleted
$ kubectl delete pod timeserver
pod "timeserver" deleted
Or, you can delete all Deployments, Services and Pods (but be careful!):
$ kubectl delete deploy,svc,pod --all
deployment.apps "timeserver" deleted
service "kubernetes" deleted
pod "timeserver-f94cc5dd9-9bm7q" deleted
pod "timeserver-f94cc5dd9-flcx5" deleted
pod "timeserver-f94cc5dd9-hcwjp" deleted
pod "timeserver-f94cc5dd9-qjksn" deleted