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