首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在GKE上使用cert-manager时出现错误

在GKE上使用cert-manager时出现错误
EN

Stack Overflow用户
提问于 2019-01-26 04:37:11
回答 1查看 581关注 0票数 0

我得到以下错误:

代码语言:javascript
复制
Error from server (InternalError): error when creating "/root/patched_issuer.yml": Internal error occurred: failed calling admission webhook "issuers.admission.certmanager.k8s.io": the server is currently unable to handle the request
Exited with code 1

下面是我的工作负载的样子。

代码语言:javascript
复制
Name    Status  Type    Pods    Namespace   Cluster
staging-cert-manager     OK Deployment  1/1 default staging
staging-webhook  Does not have minimum availability Deployment  0/1 default staging

你知道这是什么原因吗?

EN

回答 1

Stack Overflow用户

发布于 2019-09-18 02:41:15

首先,确保您在通过cert-manager故障排除页面时:

https://docs.cert-manager.io/en/latest/getting-started/troubleshooting.html

既然你提到你正在使用GKE (所以有一个变化,你是一个GKE私有集群),我建议你也看看这个:

http://docs.cert-manager.io/en/latest/getting-started/webhook.html#running-on-private-gke-clusters

在我的例子中,我必须创建一个防火墙规则,以允许从主节点到私有实例的流量。这是我必须运行的命令:

gcloud计算防火墙-rules create allow-connect-cert-manager-webhook \ --action ALLOW \--方向入口\--source-range 172.16.0.0/28 \-rules tcp:6443 \--target-tag gke-platform-staging-5d5216f8-node --network platform-staging-vpc-network

--network参数非常重要,它必须指向集群正在使用的网络。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54372424

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档