k8s基础:kubectl delete --ignore-not-found参数选项作用

undeploy: ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
	$(KUSTOMIZE) build config/default | kubectl delete --ignore-not-found=$(ignore-not-found) -f -

--ignore-not-found[=false]: 当待删除资源未找到时,也认为删除成功。如果设置了--all选项,则默认为true。
在这里插入图片描述

官网参考:
https://www.kubernetes.org.cn/doc-60

猜你喜欢

转载自blog.csdn.net/a772304419/article/details/125450896