1

尝试将 issuer 应用于 kubernetes 并收到此错误: Error from server (InternalError): error when creating ".\\issuer.yaml": Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-1575287841-webhook.cert-manager.svc:443/mutate?timeout=30s: service "cert-manager-1575287841-webhook" not found

似乎它试图调用它"cert-manager-1575287841-webhook",但在我的 kubernetes 中我有"cert-manager-1575353985-webhook"

4

3 回答 3

1

就我而言,吊舱仍在启动:

cert-manager-webhook-74d98fdc7b-qmgs2      0/1     ContainerCreating   0          25m
于 2020-01-17T19:47:24.543 回答
0

对于对此解决方案感兴趣的任何人,我设法修复了我的情况,这是一些证书管理器 k8s 资源未正确删除,因此请确保正确清理

删除下面属于证书管理器的所有资源,然后安装新的证书管理器

v1/ClusterRole
v1/Deployment
v1/Pod(related)
v1/Service
v1/ServiceAccount
v1beta1/ClusterRole
v1beta1/ClusterRoleBinding
v1beta1/MutatingWebhookConfiguration
v1beta1/Role
v1beta1/RoleBinding
v1beta1/ValidatingWebhookConfiguration
于 2021-09-08T19:46:01.817 回答
0

我也有这个问题,有什么办法解决吗?

创建“ci.yaml”时出错:发生内部错误:调用 webhook “webhook.cert-manager.io”失败:发布https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=30s : 超出上下文期限(等待标头时超出 Client.Timeout)

这是我的“ci.yaml”文件:

apiVersion: cert-manager.io/v1alpha2 kind: ClusterIssuer metadata: name:letsencrypt namespace: cert-manager spec: acme: # ACME server URL server: https://acme-v02.api.letsencrypt.org/directory # Email用于 ACME 注册电子邮件的地址:example@gmail.com # 用于存储 ACME 帐户私钥的密钥名称 privateKeySecretRef: name:letsencrypt # 启用 HTTP-01 挑战提供者求解器:- http01:入口:类:nginx

版本:

kubectl version 客户端版本:version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.1", GitCommit:"d224476cd0730baca2b6e357d144171ed74192d6", GitTreeState:"clean", BuildDate:"2020-01-14T21: 04:32Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"} 服务器版本: version.Info{Major:"1", Minor:"17", GitVersion:"v1 .17.1", GitCommit:"d224476cd0730baca2b6e357d144171ed74192d6", GitTreeState:"clean", BuildDate:"2020-01-14T20:56:50Z", GoVersion:"go1.13.5", 编译器:"gc", 平台:"linux/amd64 "}

于 2020-02-04T09:56:54.553 回答