Cert-manager webhook error

Fluentd fails to mount secrets

Symptoms

You might see the following error message:

[tiller] 2019/11/25 17:21:11 warning: Release audit-logging pre-install audit-logging/templates/certs.yaml failed: Internal error occurred: failed calling webhook "webhook.certmanager.k8s.io": the server is currently unable to handle the request
[tiller] 2019/11/25 17:21:11 failed install perform step: Internal error occurred: failed calling webhook "webhook.certmanager.k8s.io": the server is currently unable to handle the request

Causes

The cert-manager webhook is not ready.

Resolving the problem

Restart cert-manager webhook and retry the installation.

  1. Install kubectl. For more information, see Installing the Kubernetes CLI (kubectl).

  2. Get the cert-manager webhook pod name.

    kubectl get pod -n cert-manager | grep webhook | grep -v cainjector
    
  3. Delete cert-manager webhook pod.

    kubectl delete pod -n cert-manager <webhook-pod-name>
    
  4. Restart audit-logging-fluentd-ds pods.