cert-менеджер получает отказ в подключении при вызове acme_dns01

#kubernetes #cert-manager

Вопрос:

Используя jetstack/cert-manager-контроллер в качестве cert-менеджера и google cloud dns для acme dns01 challenge, версия cert-manager-контроллера v1.6.0, хранилище gcp sa в секретном google-clouddns-dns01-sa,

После создания сертификата модуль диспетчера сертификатов показывает ошибку «чтение udp 10.244.7.159:43347-gt;192.168.20.31:53: чтение: отказано в подключении»

10.244.7.159 =gt; это модуль cert-manager ,

192.168.20.31:53 =gt; Я думаю, что это может быть dns-сервер для домена разрешения , но после проверки это узел, не связанный с dns или кластером kubernetes, я не знаю, почему он появляется здесь.

КластерИзатор

 apiVersion: cert-manager.io/v1 kind: ClusterIssuer metadata:  name: google-clouddns-clusterissuer  namespace: cert-manager spec:  acme:  server: https://acme-staging-v02.api.letsencrypt.org/directory  privateKeySecretRef:  name: google-clouddns-clusterissuer-key  solvers:  - selector: {}  dns01:  cloudDNS:  project: "getbrightauto"  serviceAccountSecretRef:  name: google-clouddns-dns01-sa  key: serviceAccountKey.json  

Сертификат

 apiVersion: cert-manager.io/v1 kind: Certificate metadata:  name: getbrightauto-cert  namespace: cert-manager spec:  dnsNames:  - '*.getbrightauto.com'  secretName: getbrightauto-com-tls  issuerRef:  kind: ClusterIssuer  name: google-clouddns-clusterissuer  

журнал ошибок модуля cert-manager

 I1119 06:29:51.636448 1 conditions.go:201] Setting lastTransitionTime for Certificate "getbrightauto-cert" condition "Issuing" to 2021-11-19 06:29:51.636444946  0000 UTC m= 9823.281270634 I1119 06:29:51.636440 1 conditions.go:201] Setting lastTransitionTime for Certificate "getbrightauto-cert" condition "Ready" to 2021-11-19 06:29:51.636401959  0000 UTC m= 9823.281227652 I1119 06:29:51.710683 1 controller.go:161] cert-manager/controller/certificates-trigger "msg"="re-queuing item due to optimistic locking on resource" "key"="cert-manager/getbrightauto-cert" "error"="Operation cannot be fulfilled on certificates.cert-manager.io "getbrightauto-cert": the object has been modified; please apply your changes to the latest version and try again" I1119 06:29:51.710896 1 trigger_controller.go:181] cert-manager/controller/certificates-trigger "msg"="Certificate must be re-issued" "key"="cert-manager/getbrightauto-cert" "message"="Issuing certificate as Secret does not exist" "reason"="DoesNotExist" I1119 06:29:51.710938 1 conditions.go:201] Setting lastTransitionTime for Certificate "getbrightauto-cert" condition "Issuing" to 2021-11-19 06:29:51.710928378  0000 UTC m= 9823.355754057 I1119 06:29:51.864458 1 conditions.go:261] Setting lastTransitionTime for CertificateRequest "getbrightauto-cert-9cq6z" condition "Approved" to 2021-11-19 06:29:51.86445152  0000 UTC m= 9823.509277212 I1119 06:29:51.890542 1 conditions.go:261] Setting lastTransitionTime for CertificateRequest "getbrightauto-cert-9cq6z" condition "Ready" to 2021-11-19 06:29:51.890529646  0000 UTC m= 9823.535355334 I1119 06:29:51.900851 1 conditions.go:261] Setting lastTransitionTime for CertificateRequest "getbrightauto-cert-9cq6z" condition "Ready" to 2021-11-19 06:29:51.900844807  0000 UTC m= 9823.545670484 I1119 06:29:51.907289 1 controller.go:161] cert-manager/controller/certificaterequests-issuer-acme "msg"="re-queuing item due to optimistic locking on resource" "key"="cert-manager/getbrightauto-cert-9cq6z" "error"="Operation cannot be fulfilled on certificaterequests.cert-manager.io "getbrightauto-cert-9cq6z": the object has been modified; please apply your changes to the latest version and try again" E1119 06:29:59.641932 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:43347-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" E1119 06:29:59.660499 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:42189-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" E1119 06:29:59.671445 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:57988-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" E1119 06:30:19.881627 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="dial tcp 192.168.20.31:53: connect: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" E1119 06:30:19.903955 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:56614-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" I1119 06:30:19.913668 1 controller.go:161] cert-manager/controller/challenges "msg"="re-queuing item due to optimistic locking on resource" "key"="cert-manager/getbrightauto-cert-9cq6z-2473526240-1001066544" "error"="Operation cannot be fulfilled on challenges.acme.cert-manager.io "getbrightauto-cert-9cq6z-2473526240-1001066544": the object has been modified; please apply your changes to the latest version and try again" E1119 06:30:19.915387 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:57178-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01" E1119 06:30:19.926516 1 sync.go:186] cert-manager/controller/challenges "msg"="propagation check failed" "error"="read udp 10.244.7.159:46034-gt;192.168.20.31:53: read: connection refused" "dnsName"="getbrightauto.com" "resource_kind"="Challenge" "resource_name"="getbrightauto-cert-9cq6z-2473526240-1001066544" "resource_namespace"="cert-manager" "resource_version"="v1" "type"="DNS-01"   
 kubectl describe certificaterequests.cert-manager.io getbrightauto-cert-9cq6z -n cert-manager  OrderPending Waiting on certificate issuance from order cert-manager/getbrightauto-cert-9cq6z-24735   kubectl describe order getbrightauto-cert-9cq6z-2473526240 -n cert-manager Status:  Authorizations:  Challenges:  Token: Un7TMPRu0UJDjPbqD-8Rd5pYDp1KUA02jmyBZG_fKl0  Type: dns-01  URL: https://acme-staging-v02.api.letsencrypt.org/acme/chall-v3/974003918/Y0LoTA  Identifier: getbrightauto.com  Initial State: pending  URL: https://acme-staging-v02.api.letsencrypt.org/acme/authz-v3/974003918  Wildcard: true  Finalize URL: https://acme-staging-v02.api.letsencrypt.org/acme/finalize/34217178/1056679278  State: pending  URL: https://acme-staging-v02.api.letsencrypt.org/acme/order/34217178/1056679278  

Связана ли эта проблема с настройками сети? Где я должен проверить? Я протестировал модуль dnsutil, чтобы проверить в том же пространстве имен, которое может разрешить google.com на Ip.

Комментарии:

1. Я обнаружил, что мы установили getbrightauto.com как 192.168.20.31 в office, так что office dns и google cloud dns имеют один и тот же домен, теперь мне интересно, могут ли они работать вместе или мне следует удалить одно и то же доменное имя в office?