【问题标题】:Getting error when using cert-manager on GKE在 GKE 上使用 cert-manager 时出错
【发布时间】:2019-01-25 20:37:11
【问题描述】:

我收到以下错误:

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

这是我的工作负载的样子。

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

知道是什么原因造成的吗?

【问题讨论】:

    标签: kubernetes cert-manager


    【解决方案1】:

    首先确保您在通过 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 计算防火墙规则创建 allow-connect-cert-manager-webhook \ --动作允许\ --方向入口\ --源范围 172.16.0.0/28 \ --规则 tcp:6443 \ --target-tags gke-platform-staging-5d5216f8-node --network platform-staging-vpc-network

    --network 参数至关重要,它必须针对您的集群正在使用的网络。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-24
      • 2021-05-26
      • 2019-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多