Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
kubectl-delete Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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:
`kubectl 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}}`