Microk8s中Cert-Manager应用Issuer报错:找不到指定webhook服务
应用cert-manager Issuer时触发webhook错误:服务"certmgr-cert-manager-webhook"未找到
执行命令:
kubectl apply -f issuer-lets-encrypt-staging.yaml
返回报错:
Error from server (InternalError): error when creating "issuer-lets-encrypt-staging.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": failed to call webhook: Post "https://certmgr-cert-manager-webhook.cert-manager.svc:443/mutate?timeout=10s": service "certmgr-cert-manager-webhook" not found
我的Issuer配置文件内容:
# issuer-lets-encrypt-staging.yaml apiVersion: cert-manager.io/v1 kind: Issuer metadata: name: letsencrypt-staging spec: acme: server: https://acme-staging-v02.api.letsencrypt.org/directory email: <email-address> # ❗ Replace this with your email address privateKeySecretRef: name: letsencrypt-staging solvers: - http01: ingress: name: web-ingress
cert-manager命名空间下的所有资源状态:
kubectl -n cert-manager get all NAME READY STATUS RESTARTS AGE pod/cert-manager-cainjector-64d74f9c8f-szj8d 1/1 Running 0 20m pod/cert-manager-b4b465456-lnjtw 1/1 Running 0 20m pod/cert-manager-webhook-66fff58cdf-dtdcv 1/1 Running 0 20m NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/cert-manager ClusterIP 10.152.183.213 <none> 9402/TCP 20m service/cert-manager-webhook ClusterIP 10.152.183.44 <none> 443/TCP 20m NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/cert-manager-cainjector 1/1 1 1 20m deployment.apps/cert-manager 1/1 1 1 20m deployment.apps/cert-manager-webhook 1/1 1 1 20m NAME DESIRED CURRENT READY AGE replicaset.apps/cert-manager-cainjector-64d74f9c8f 1 1 1 20m replicaset.apps/cert-manager-b4b465456 1 1 1 20m replicaset.apps/cert-manager-webhook-66fff58cdf 1 1 1 20m
这个问题已经困扰我一个月,求各位帮忙解决。
内容的提问来源于stack exchange,提问作者ayalcin
相关产品推荐
相关产品推荐

