Kubectl Patch 的应用

报错

先前创建的crds不会删除。仍处于终止状态

[root@k8s-01 clickhouse-cluster]# kubectl apply -f sample05.yaml 
Error from server (MethodNotAllowed): error when creating "sample05.yaml": create not allowed while custom resource definition is terminating

参考

##
https://github.com/kubernetes/kubernetes/issues/60538

###
https://stackoverflow.com/questions/67281913/cannot-delete-custom-resource-definition-which-is-from-previous-installation-eff

###
https://cloud.tencent.com/developer/ask/sof/467670



##  Kubectl Patch 基础知识
https://blog.csdn.net/cr7258/article/details/130327728

解决

## 
kubectl patch crd/clickhouseinstallations.clickhouse.radondb.com -p '{"metadata":{"finalizers":[]}}' --type=merge


###

kubectl patch crd/clickhouseinstallations.clickhouse.altinity.com -p '{"metadata":{"fina

你可能感兴趣的:(Kubernetes,linux,kubernetes,docker)