You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importantly, the volume is attempting to mount from the secret named cert-manager-webhook-dnsimple-webhook-tls. This automatically gets created according to the documentation from the Certificate's secretName that's also in the yaml generated by the helm chart in --dry-run mode.
However, when I install everything, the pod remains in ContainerCreating forever, and the description of the pod says:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 24s default-scheduler Successfully assigned default/cert-manager-webhook-dnsimple-5df7648688-28h8r to kn1
Warning FailedMount 9s (x6 over 24s) kubelet MountVolume.SetUp failed for volume "certs" : secret "cert-manager-webhook-dnsimple-webhook-tls" not found
It turns out that everything in the yaml file (where appropriate) gets created in the cert-manager namespace except for the Deployment, and so the deployment can't mount that volume because the secret is in a different namespace.
The text was updated successfully, but these errors were encountered:
After I manually edited the yaml to put the Deployment into the cert-manager namespace, the ReplicaSet wasn't able to create the pod because the service account also was not in the cert-manager namespace:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedCreate 9s (x14 over 50s) replicaset-controller Error creating: pods "cert-manager-webhook-dnsimple-5df7648688-" is forbidden: error looking up service account cert-manager/cert-manager-webhook-dnsimple: serviceaccount "cert-manager-webhook-dnsimple" not found
Once I also put the service account into the cert-manager, everything started.
When the helm chart is run with
--dry-run
, one can see that the Deployment yaml looks like this:Importantly, the volume is attempting to mount from the secret named
cert-manager-webhook-dnsimple-webhook-tls
. This automatically gets created according to the documentation from theCertificate
'ssecretName
that's also in the yaml generated by the helm chart in--dry-run
mode.However, when I install everything, the pod remains in
ContainerCreating
forever, and the description of the pod says:It turns out that everything in the yaml file (where appropriate) gets created in the
cert-manager
namespace except for the Deployment, and so the deployment can't mount that volume because the secret is in a different namespace.The text was updated successfully, but these errors were encountered: