Hello there,
I am trying to set up a kube clusterissuer using cert-manager and ingress.
My subdomain is: titiler-dev.undpgeohub.org
kubectl get certificate -n geodemo
NAME READY SECRET AGE
geodemo-cert False geodemo-cert 41m
next
kubectl describe certificate -n geodemo
Status:
Conditions:
Last Transition Time: 2022-10-09T23:09:37Z
Message: Issuing certificate as Secret does not exist
Observed Generation: 1
Reason: DoesNotExist
Status: True
Type: Issuing
Last Transition Time: 2022-10-09T23:09:37Z
Message: Issuing certificate as Secret does not exist
Observed Generation: 1
Reason: DoesNotExist
Status: False
Type: Ready
Next Private Key Secret Name: geodemo-cert-w9zpm
Events:
Type Reason Age From Message
Normal Issuing 42m cert-manager-certificates-trigger Issuing certificate as Secret does not exist
Normal Generated 42m cert-manager-certificates-key-manager Stored new private key in temporary Secret resource "geodemo-cert-w9zpm"
Normal Requested 42m cert-manager-certificates-request-manager Created new CertificateRequest resource "geodemo-cert-b48kq"
and into the request
kubectl describe certificaterequest geodemo-cert-b48kq -n geodemo
Status:
Conditions:
Last Transition Time: 2022-10-09T23:09:37Z
Message: Certificate request has been approved by cert-manager.io
Reason: cert-manager.io
Status: True
Type: Approved
Last Transition Time: 2022-10-09T23:09:38Z
Message: Waiting on certificate issuance from order geodemo/geodemo-cert-b48kq-3670509394: "pending"
Reason: Pending
Status: False
Type: Ready
Events:
Type Reason Age From Message
Normal cert-manager.io 44m cert-manager-certificaterequests-approver Certificate request has been approved by cert-manager.io
Normal OrderCreated 44m cert-manager-certificaterequests-issuer-acme Created Order resource geodemo/geodemo-cert-b48kq-3670509394
next i looked at the order
kubectl describe order geodemo-cert-b48kq-3670509394 -n geodemo
Status:
Authorizations:
Challenges:
Token: EhxmKzrsFKrGgIoGx39VnNjMvXZWosyGX8cOIrCB3Oc
Type: http-01
URL: https://acme-v02.api.letsencrypt.org/acme/chall-v3/162759015656/QIkh8Q
Token: EhxmKzrsFKrGgIoGx39VnNjMvXZWosyGX8cOIrCB3Oc
Type: dns-01
URL: https://acme-v02.api.letsencrypt.org/acme/chall-v3/162759015656/GHr9LA
Token: EhxmKzrsFKrGgIoGx39VnNjMvXZWosyGX8cOIrCB3Oc
Type: tls-alpn-01
URL: https://acme-v02.api.letsencrypt.org/acme/chall-v3/162759015656/mAnf-g
Identifier: titiler-dev.undpgeohub.org
Initial State: pending
URL: https://acme-v02.api.letsencrypt.org/acme/authz-v3/162759015656
Wildcard: false
Finalize URL: https://acme-v02.api.letsencrypt.org/acme/finalize/768432736/133100419896
State: pending
URL: https://acme-v02.api.letsencrypt.org/acme/order/768432736/133100419896
Events:
And this is where i stopped because I can not figure out what is happening.
at the same time the cert-manager pod logs said:
E1009 23:30:54.254553 1 controller.go:166] cert-manager/orders "msg"="re-queuing item due to error processing" "error"="create not allowed while custom resource definition is terminating" "key"="geodemo/geodemo-cert-b48kq-3670509394"
E1009 23:41:29.765609 1 controller.go:166] cert-manager/challenges "msg"="re-queuing item due to error processing" "error"="[error reading (cluster)issuer "letsencrypt-staging": clusterissuer.cert-manager.io "letsencrypt-staging" not found, namespaces "dev" not found]" "key"="dev/tls-secret-lclvt-2994752350-2717540044"
E1009 23:52:14.263448 1 controller.go:166] cert-manager/orders "msg"="re-queuing item due to error processing" "error"="create not allowed while custom resource definition is terminating" "key"="geodemo/geodemo-cert-b48kq-3670509394"
My cluster-issuer is letsencrypt
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: xxx@yyy
privateKeySecretRef:
name: letsencrypt
solvers:
- dns01:
cloudflare:
email: xxx@yyy
apiTokenSecretRef:
name: cloudflare-api-token-secret
key: api-token
selector:
dnsZones:
- 'undpgeohub.org'
- '*.undpgeohub.org'
so it makes no sense for the cert-manegr to complain about letsencrypt-staging
The cluster is deployed in AKS
Any hints are appreciated