Difference between revisions of "Kubectl delete"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 8: | Line 8: | ||
− | + | * <code>[[kubectl delete pods -n kube-system -l=app=ebs-csi-controller]]</code> | |
+ | |||
* <code>[[kubectl delete pods --all]]</code> | * <code>[[kubectl delete pods --all]]</code> | ||
Line 14: | Line 15: | ||
* <code>[[kubectl delete deployments]] --all</code> | * <code>[[kubectl delete deployments]] --all</code> | ||
− | + | * <code>kubectl delete deployment,svc mysql</code> | |
− | + | * <code>[[kubectl delete pvc]] mysql-pv-claim</code> | |
− | + | * <code>[[kubectl delete pv]] mysql-pv-volume</code> | |
− | + | * <code>kubectl delete namespace XXXX</code> | |
− | + | * <code>[[kubectl delete crd]] XXXX</code> | |
* Uninstall [[Istio]]: <code>[[istioctl manifest generate]] --set profile=demo | [[kubectl delete]] -f -</code> | * Uninstall [[Istio]]: <code>[[istioctl manifest generate]] --set profile=demo | [[kubectl delete]] -f -</code> |
Revision as of 06:57, 28 March 2023
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_delete/
kubectl delete pod POD_NAME
kubectl delete pod --force --grace-period=0 POD_NAME
kubectl delete services hello-minikube
kubectl delete pods --all
kubectl delete replicasets --all
kubectl delete deployments --all
kubectl delete deployment,svc mysql
kubectl delete pvc mysql-pv-claim
kubectl delete pv mysql-pv-volume
kubectl delete namespace XXXX
kubectl delete crd XXXX
- Uninstall Istio:
istioctl manifest generate --set profile=demo | kubectl delete -f -
Related commands
See also
kubectl delete [ crd | pod | node | deployments | pvc | service ]
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: