티스토리 뷰

공부

[k8s] delete pods & deployments

seunggabi 승가비 2020. 8. 28. 00:09
kubectl get all

# pods
kubectl delete pod simple-pod

# deployments
kubectl delete deploy/simple-deployment svc/simple-service

https://coreos.com/tectonic/docs/latest/tutorials/sandbox/deleting-deployment.html

 

CoreOS

CoreOS provides Container Linux, Tectonic for Kubernetes and the Quay image registry; key components to secure, simplify and automatically update your container infrastructure.

coreos.com

https://stackoverflow.com/questions/33509194/command-to-delete-all-pods-in-all-kubernetes-namespaces

 

Command to delete all pods in all kubernetes namespaces

Upon looking at the docs, there is an API call to delete 'a' pod, but is there a way to kill all pods in all namespaces?

stackoverflow.com

 

'공부' 카테고리의 다른 글

[Logstash] basic  (0) 2020.08.28
GSLB(Global Service Load Balancing)  (0) 2020.08.28
[k8s] delete pods & deployments  (0) 2020.08.28
[Sh] awk $1 $2 ...  (0) 2020.08.27
[Sh] ps ax | grep tomcat  (0) 2020.08.22
[Date] format  (0) 2020.08.21
댓글
댓글쓰기 폼