代码之家  ›  专栏  ›  技术社区  ›  Peter R

在GKE上使用证书管理器时出错

  •  0
  • Peter R  · 技术社区  · 6 年前

    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
    

    你知道这是什么原因吗?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Yoanis Gil    6 年前

    首先确保您在通过证书管理器故障排除页面时:

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

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

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

    gcloud计算防火墙规则创建允许连接证书管理器webhook\ --方向入口\ --规则传输控制协议:6443\ --目标标签gke-platform-staging-5d5216f8-node --网络平台分阶段vpc网络

    --network

    推荐文章