We are using Terraform and Helm on Azure to set up a new cert-manager and certificate using LetsEncrypt but keep getting an error
When I type:
kubectl describe certificates --all-namespaces
I get the following Issuer information
Issuer Ref:
Group: cert-manager.io
Kind: ClusterIssuer
Name: letsencrypt-staging
Secret Name: tls-secret-staging
Usages:
digital signature
key encipherment
Status:
Conditions:
Last Transition Time: 2021-08-11T19:50:46Z
Message: Issuing certificate as Secret does not exist
Observed Generation: 3
Reason: DoesNotExist
Status: False
Type: Ready
Last Transition Time: 2021-08-11T19:50:46Z
Message: Issuing certificate as Secret does not exist
Observed Generation: 1
Reason: DoesNotExist
Status: True
Type: Issuing
Next Private Key Secret Name: tls-secret-staging-xsdnd
Events:
Type Reason Age From Message
Normal Requested 39m cert-manager Created new CertificateRequest resource "tls-secret-staging-f45qd"
And then when checking the CertificateRequest using "kubectl describe certificaterequest tls-secret-staging-f45qd -n gateway" I get
Status:
Conditions:
Last Transition Time: 2021-08-12T07:03:31Z
Message: Certificate request has been approved by cert-manager.io
Reason: cert-manager.io
Status: True
Type: Approved
Last Transition Time: 2021-08-12T07:03:31Z
Message: Referenced "ClusterIssuer" not found: clusterissuer.cert-manager.io "letsencrypt-staging" not found
Reason: Pending
Status: False
Type: Ready
Events:
Type Reason Age From Message
Normal cert-manager.io 46m cert-manager Certificate request has been approved by cert-manager.io
Normal IssuerNotFound 46m (x5 over 46m) cert-manager Referenced "ClusterIssuer" not found: clusterissuer.cert-manager.io "letsencrypt-staging" not found