<p>The <a href="https://kubedb.com/" rel="noreferrer">kubedb</a> operator in this case has crashed and un-responsive - however I need to cleanup these resources.</p>

<pre><code> 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

</code></pre>

<p>There should be a resource of kind <code>MutatingWebhookConfiguration</code> or <code>ValidatingWebhookConfiguration</code> which actually registers the <code>webhook</code> with Kubernetes API Server. You need to delete that resource first which deregisters the webhook from the Kubernetes API Server.</p>
<p>Temporary store kubedb-webhook configuration:</p>
<pre><code>kubectl get ValidatingWebhookConfiguration redis.validators.kubedb.com \
  -o yaml &gt; redis-validator.yaml
kubectl get MutatingWebhookConfiguration redis.validators.kubedb.com \
  -o yaml &gt; redis-mutate-validator.yaml
</code></pre>
<p>Remove your resources:</p>
<pre><code>kubectl delete redis r1 redis-queue --namespace cts
</code></pre>
<p>Bring back the webhook configuration:</p>
<pre><code>kubectl apply -f redis-validator.yaml
kubectl apply -f redis-mutate-validator.yaml
</code></pre>
