Difference between revisions of "Kubectl delete"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:
  
  
[[kubectl delete pods -n kube-system -l=app=ebs-csi-controller]]
+
* <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>
  
kubectl delete deployment,svc mysql
+
* <code>kubectl delete deployment,svc mysql</code>
[[kubectl delete pvc]] mysql-pv-claim
+
* <code>[[kubectl delete pvc]] mysql-pv-claim</code>
[[kubectl delete pv]] mysql-pv-volume
+
* <code>[[kubectl delete pv]] mysql-pv-volume</code>
  
kubectl delete namespace XXXX
+
* <code>[[kubectl delete namespace]] XXXX</code>
  
[[kubectl delete crd]] XXXX
+
* <code>[[kubectl delete crd]] XXXX</code>
 +
 
 +
[[kubectl delete all --all]]
  
 
* 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>
 +
 +
== Examples ==
 +
[[kubectl delete CustomResourceDefinition]] [[clusterconfigauditreports.aquasecurity.github.io]] -n aqua
 +
kubectl delete CustomResourceDefinition [[configauditreports]].aquasecurity.github.io -n aqua
  
 
== Related commands ==
 
== Related commands ==

Latest revision as of 09:52, 7 March 2024

Advertising: