Kubectl delete: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * kubectl")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=External=
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#delete
=Internal=
=Internal=
* [[Kubectl#Commands|kubectl]]
* [[Kubectl#Commands|kubectl]]
=Overview=
=Pod Force Delete=
<syntaxhighlight lang='bash'>
kubectl delete pod <pod-name> --grace-period=0 --force
</syntaxhighlight>
=Delete Resource specified in a File=
<syntaxhighlight lang='bash'>
kubectl delete -f <file>
</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>