Kubectl delete: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 1: Line 1:
=External=
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#delete
=Internal=
=Internal=
* [[Kubectl#Commands|kubectl]]
* [[Kubectl#Commands|kubectl]]
Line 7: Line 9:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
kubectl delete pod <pod-name> --grace-period=0 --force
kubectl delete pod <pod-name> --grace-period=0 --force
</syntaxhighlight>
=Delete Resource specified in a File=
<syntaxhighlight lang='bash'>
kubectl delete -f <file>
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 23:01, 14 October 2020

External

Internal

Overview

Pod Force Delete

kubectl delete pod <pod-name> --grace-period=0 --force

Delete Resource specified in a File

kubectl delete -f <file>