简体   繁体   中英

Letsencrypt certificate READY is False and the STATUS is 'Issuing certificate as Secret does not exist'

I am trying to configure tls for my Kube.netes cluster using cert-manager and lets encrypt but seems to be running into a problem that I cannot seem to resolve.

I have installed cert-manager using the following command

kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.1/cert-manager.yaml

And have configured cluster issuer with the yaml file below

apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
  name: letsencrypt-prod
  namespace: tardis
spec:
  acme:
    # The ACME server URL
    server: https://acme-v02.api.letsencrypt.org/directory
    # Email address used for ACME registration
    email: adamlee@tardistechnology.com
    # Name of a secret used to store the ACME account private key
    privateKeySecretRef:
      name: letsencrypt-prod
    # Enable the HTTP-01 challenge provider
    solvers:
    - http01:
        ingress:
          class: nginx

And I have tried issuing a certificate with the yaml file below

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: home.tardis.kr
  namespace: tardis
spec:
  secretName: home.tardis.kr-tls
  issuerRef:
    name: letsencrypt-prod
    kind: ClusterIssuer
  commonName: home.tardis.kr
  dnsNames:
  - home.tardis.kr

However, when I get the status of the certificate, it seems to be 'False' and the status seems to be 'Issuing certificate as Secret does not exist' 在此处输入图像描述 Some of the solutions that I have found seems to indicate that this is due to the fact that the fact that the domain listed on the ingress is not connected properly, but this does not seem to be the case for me, and the domain seems to be connected fine.

It would be deeply appreciated if anyone could provide any feedback on this matter. Thank you in advance!

I was applying certificate instead of secret. I changed the ingress so that it will apply the secret and the problem was solved

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM