本例中的kubedb操作符已经崩溃并且没有响应--但是我需要清理这些资源。
k delete redis r1 redis-queue --namespace cts --force --grace-period=0
warning: Immediate deletion does not wait for confirmation that the running resource has been terminated. The resource may continue to run on the cluster indefinitely.
Error from server (InternalError): Internal error occurred: failed calling webhook "redis.validators.kubedb.com": the server is currently unable to handle the request
Error from server (InternalError): Internal error occurred: failed calling webhook "redis.validators.kubedb.com": the server is currently unable to handle the request发布于 2020-06-16 00:10:06
应该有一个MutatingWebhookConfiguration或ValidatingWebhookConfiguration类型的资源,它实际向Kubernetes API Server注册webhook。您需要首先删除该资源,这将从Kubernetes API Server注销webhook。
临时存储kubedb-webhook配置:
kubectl get ValidatingWebhookConfiguration redis.validators.kubedb.com \
-o yaml > redis-validator.yaml
kubectl get MutatingWebhookConfiguration redis.validators.kubedb.com \
-o yaml > redis-mutate-validator.yaml删除您的资源:
kubectl delete redis r1 redis-queue --namespace cts带回webhook配置:
kubectl apply -f redis-validator.yaml
kubectl apply -f redis-mutate-validator.yamlhttps://stackoverflow.com/questions/62392045
复制相似问题