由于 x509 证书问题,knative helloworld 无法运行 microk8s



我已经在使用ubuntu(Ubuntu 20.04 LTS(在microk8s上安装了knative。我正在尝试基本的knative示例,但它不起作用。 1.首先我尝试使用kn.(kn无法读取配置,因此我使用microk8s.config > ~/kubeconfig导出配置

kn --kubeconfig ~/kubeconfig service create hello --image gcr.io/knative-samples/helloworld-go --env TARGET=Knative
Internal error occurred: failed calling webhook "webhook.serving.knative.dev": Post "https://webhook.knative-serving.svc:443/defaulting?timeout=30s": x509: certificate is not valid for any names, but wanted to match webhook.knative-serving.svc
  1. 我尝试使用kubectl create加载,但得到同样的错误。 任何想法。

你使用的是哪个版本的Knative?

看起来您的 Knative 网络钩子可能正在生成一个主题为空的证书。您是否尝试过通过curl -kvv https://webhook.knative-serving.svc:443/defaulting直接连接到集群上的 webhook?这应该打印出证书并忽略验证,以便您可以测试服务是否正常工作。

最新更新