kubectl-delete: add page (#7042)

This commit is contained in:
Nelson Figueroa
2021-10-24 05:15:36 -07:00
committed by GitHub
parent 8e56c88b57
commit be8f21e02f

View File

@@ -0,0 +1,32 @@
# kubectl delete
> Delete Kubernetes resources.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#delete>.
- Delete a specific pod:
`kubectl delete pod {{pod_name}}`
- Delete a specific deployment:
`kubect delete deployment {{deployment_name}}`
- Delete a specific node:
`kubectl delete node {{node_name}}`
- Delete all pods in a specified namespace:
`kubectl delete pods --all --namespace {{namespace}}`
- Delete all deployments and services in a specified namespace:
`kubectl delete deployments,services --all --namespace {{namespace}}`
- Delete all nodes:
`kubectl delete nodes --all`
- Delete resources defined in a YAML manifest:
`kubectl delete --filename {{path/to/manifest.yaml}}`