- Kubernetes Cookbook
- Hideto Saito Hui Chuan Chloe Lee Ke Jou Carol Hsu
- 62字
- 2025-04-04 17:06:46
Stopping the application
We can stop the application using commands such as the delete deployment and service. Before this, we suggest you read through the following code first to understand more about how it works:
// stop deployment named my-first-nginx
$ kubectl delete deployment my-first-nginx
deployment.extensions "my-first-nginx" deleted
// stop service named my-first-nginx
$ kubectl delete service my-first-nginx
service "my-first-nginx" deleted