运行setup_robot.sh时证书错误

时间:2019-02-05 10:26:55

标签: x509 google-cloud-robotics

Cloud Robotics documentation运行setup_robot.sh时,证书无效。我收到以下错误:

Failed to update robot CR my-robot: Failed to get robot my-robot: Get https://www.endpoints.robco-skopecki.cloud.goog/apis/core.kubernetes/apis/registry.cloudrobotics.com/v1alpha1/namespaces/default/robots/my-robot: x509: certificate is valid for ingress.local, not www.endpoints.robco-skopecki.cloud.goog

1 个答案:

答案 0 :(得分:2)

如果letencrypt未完成为云集群创建证书,则会出现此问题。这可能是在首次安装期间发生的。您可以通过以下方法进行检查:

kubectl get certificates cloud-robotics -o yaml

如果输出缺少状态,请重新启动cert-manager:

kubectl delete pod cert-manager-<tab>

一旦重新启动,请再次检查certificate,一旦状态指示成功,就应该将证书存储为称为tls的秘密:

kubectl get secrets tls

此时,您可以重新运行setup_robot.sh