报错
先前创建的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
解决
删除altinity crd
kubectl patch crd/clickhouseinstallations.clic