你有责任将每个域名指向你的入口控制器的正确 IP 地址。(就是配置 DNS 记录的活还是需要你自己来做。)
在创建上述证书后,我们可以使用 kubectl describe 检查它是否已经成功获得。
1 2 3 4 5 6 7 8 9 10
$ kubectl describe certificate example-com Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal CreateOrder 57m cert-manager Created new ACME order, attempting validation... Normal DomainVerified 55m cert-manager Domain "example.com" verified with "http-01" validation Normal DomainVerified 55m cert-manager Domain "www.example.com" verified with "http-01" validation Normal IssueCert 55m cert-manager Issuing certificate... Normal CertObtained 55m cert-manager Obtained certificate from ACME server Normal CertIssued 55m cert-manager Certificate issued successfully
I0507 13:39:31.141402 1 trigger_controller.go:181] cert-manager/certificates-trigger "msg"="Certificate must be re-issued""key"="cattle-system/tls-rancher-ingress""message"="Renewing certificate as renewal was scheduled at 2022-05-07 13:39:31 +0000 UTC""reason"="Renewing" I0507 13:39:31.143437 1 conditions.go:201] Setting lastTransitionTime for Certificate "tls-rancher-ingress" condition "Issuing" to 2022-05-07 13:39:31.142484989 +0000 UTC m=+186628.212145824 I0507 13:39:31.807902 1 controller.go:161] cert-manager/certificates-key-manager "msg"="re-queuing item due to optimistic locking on resource""key"="cattle-system/tls-rancher-ingress""error"="Operation cannot be fulfilled on certificates.cert-manager.io \"tls-rancher-ingress\": the object has been modified; please apply your changes to the latest version and try again" I0507 13:39:31.928746 1 conditions.go:261] Setting lastTransitionTime for CertificateRequest "tls-rancher-ingress-5j9mm" condition "Approved" to 2022-05-07 13:39:31.927475704 +0000 UTC m=+186628.997136533 I0507 13:39:32.181390 1 conditions.go:261] Setting lastTransitionTime for CertificateRequest "tls-rancher-ingress-5j9mm" condition "Ready" to 2022-05-07 13:39:32.181379458 +0000 UTC m=+186629.251040270 I0507 13:39:32.263457 1 controller.go:161] cert-manager/certificaterequests-issuer-acme "msg"="re-queuing item due to optimistic locking on resource""key"="cattle-system/tls-rancher-ingress-5j9mm""error"="Operation cannot be fulfilled on certificaterequests.cert-manager.io \"tls-rancher-ingress-5j9mm\": the object has been modified; please apply your changes to the latest version and try again" I0507 13:39:41.306332 1 pod.go:71] cert-manager/challenges/http01/ensurePod "msg"="creating HTTP01 challenge solver pod""dnsName"="rancher.ewhisper.cn""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:39:41.621639 1 pod.go:59] cert-manager/challenges/http01/selfCheck/http01/ensurePod "msg"="found one existing HTTP01 solver pod""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Pod""related_resource_name"="cm-acme-http-solver-pglxk""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:39:41.621784 1 service.go:43] cert-manager/challenges/http01/selfCheck/http01/ensureService "msg"="found one existing HTTP01 solver Service for challenge resource""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Service""related_resource_name"="cm-acme-http-solver-xsqkb""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" E0507 13:39:41.837584 1 sync.go:186] cert-manager/challenges "msg"="propagation check failed""error"="wrong status code '404', expected '200'""dnsName"="rancher.ewhisper.cn""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:39:42.027681 1 pod.go:59] cert-manager/challenges/http01/selfCheck/http01/ensurePod "msg"="found one existing HTTP01 solver pod""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Pod""related_resource_name"="cm-acme-http-solver-pglxk""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:39:42.027757 1 service.go:43] cert-manager/challenges/http01/selfCheck/http01/ensureService "msg"="found one existing HTTP01 solver Service for challenge resource""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Service""related_resource_name"="cm-acme-http-solver-xsqkb""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:39:42.027811 1 ingress.go:110] cert-manager/challenges/http01/selfCheck/http01/ensureIngress "msg"="multiple challenge solver ingresses found for challenge. cleaning up all existing ingresses.""dnsName"="rancher.ewhisper.cn""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" E0507 13:39:42.076190 1 controller.go:102] ingress 'cattle-system/cm-acme-http-solver-knwm8'in work queue no longer exists E0507 13:39:42.100492 1 controller.go:102] ingress 'cattle-system/cm-acme-http-solver-59gvf'in work queue no longer exists E0507 13:39:42.101020 1 sync.go:186] cert-manager/challenges "msg"="propagation check failed""error"="multiple existing challenge solver ingresses found and cleaned up. retrying challenge sync""dnsName"="rancher.ewhisper.cn""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" ... E0507 13:40:22.187779 1 sync.go:386] cert-manager/challenges/acceptChallenge "msg"="error waiting for authorization""error"="context deadline exceeded""dnsName"="rancher.ewhisper.cn""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" E0507 13:40:22.188198 1 controller.go:163] cert-manager/challenges "msg"="re-queuing item due to error processing""error"="context deadline exceeded""key"="cattle-system/tls-rancher-ingress-5j9mm-2528720963-983401508" I0507 13:40:27.188948 1 pod.go:59] cert-manager/challenges/http01/selfCheck/http01/ensurePod "msg"="found one existing HTTP01 solver pod""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Pod""related_resource_name"="cm-acme-http-solver-pglxk""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:40:27.190011 1 service.go:43] cert-manager/challenges/http01/selfCheck/http01/ensureService "msg"="found one existing HTTP01 solver Service for challenge resource""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Service""related_resource_name"="cm-acme-http-solver-xsqkb""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" I0507 13:40:27.190749 1 ingress.go:98] cert-manager/challenges/http01/selfCheck/http01/ensureIngress "msg"="found one existing HTTP01 solver ingress""dnsName"="rancher.ewhisper.cn""related_resource_kind"="Ingress""related_resource_name"="cm-acme-http-solver-cmp2c""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="Challenge""resource_name"="tls-rancher-ingress-5j9mm-2528720963-983401508""resource_namespace"="cattle-system""resource_version"="v1""type"="HTTP-01" E0507 13:40:38.478817 1 controller.go:102] ingress 'cattle-system/cm-acme-http-solver-cmp2c'in work queue no longer exists I0507 13:40:39.806118 1 acme.go:209] cert-manager/certificaterequests-issuer-acme/sign "msg"="certificate issued""related_resource_kind"="Order""related_resource_name"="tls-rancher-ingress-5j9mm-2528720963""related_resource_namespace"="cattle-system""related_resource_version"="v1""resource_kind"="CertificateRequest""resource_name"="tls-rancher-ingress-5j9mm""resource_namespace"="cattle-system""resource_version"="v1" I0507 13:40:39.809106 1 conditions.go:250] Found status change for CertificateRequest "tls-rancher-ingress-5j9mm" condition "Ready": "False" -> "True"; setting lastTransitionTime to 2022-05-07 13:40:39.809091738 +0000 UTC m=+186696.878752561 I0507 13:40:40.068059 1 controller.go:161] cert-manager/certificates-issuing "msg"="re-queuing item due to optimistic locking on resource""key"="cattle-system/tls-rancher-ingress""error"="Operation cannot be fulfilled on certificates.cert-manager.io \"tls-rancher-ingress\": the object has been modified; please apply your changes to the latest version and try again" I0507 13:40:40.168307 1 controller.go:161] cert-manager/certificates-key-manager "msg"="re-queuing item due to optimistic locking on resource""key"="cattle-system/tls-rancher-ingress""error"="Operation cannot be fulfilled on certificates.cert-manager.io \"tls-rancher-ingress\": the object has been modified; please apply your changes to the latest version and try again" E0507 13:40:41.298717 1 sync.go:70] cert-manager/orders "msg"="failed to update status""error"=null "resource_kind"="Order""resource_name"="tls-rancher-ingress-5j9mm-2528720963""resource_namespace"="cattle-system""resource_version"="v1" I0507 13:40:41.299059 1 controller.go:161] cert-manager/orders "msg"="re-queuing item due to optimistic locking on resource""key"="cattle-system/tls-rancher-ingress-5j9mm-2528720963""error"="Operation cannot be fulfilled on orders.acme.cert-manager.io \"tls-rancher-ingress-5j9mm-2528720963\": the object has been modified; please apply your changes to the latest version and try again" E0507 13:40:41.331531 1 controller.go:211] cert-manager/challenges "msg"="challenge in work queue no longer exists""error"="challenge.acme.cert-manager.io \"tls-rancher-ingress-5j9mm-2528720963-983401508\" not found"
Found status change for CertificateRequest "tls-rancher-ingress-5j9mm" condition "Ready": "False" -> "True"; setting lastTransitionTime to 2022-05-07 13:40:39.809091738 +0000 UTC m=+186696.878752561