首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >例应用程序"helloworld-go“与证书管理器一起给出了状态IngressNotConfigured。

例应用程序"helloworld-go“与证书管理器一起给出了状态IngressNotConfigured。
EN

Stack Overflow用户
提问于 2019-11-26 15:48:15
回答 1查看 1.1K关注 0票数 1

我试图在GKE上使用证书管理器运行helloworld-go示例。

我安装了Istio没有侧加注入,证书管理器0.11和安装自动SSL和DNS.当我运行kubectl get ksvc时,它会显示IngressNotConfigured。知道为什么吗?

代码语言:javascript
运行
复制
$ kubectl get ksvc
NAME            URL                                           LATESTCREATED         LATESTREADY           READY     REASON
helloworld-go   https://helloworld-go.default.redhost.cloud   helloworld-go-mc27h   helloworld-go-mc27h   Unknown   IngressNotConfigured
代码语言:javascript
运行
复制
$ kubectl describe ksvc helloworld-go
Status:
  Address:
    URL:  http://helloworld-go.default.svc.cluster.local
  Conditions:
    Last Transition Time:        2019-11-26T15:19:51Z
    Status:                      True
    Type:                        ConfigurationsReady
    Last Transition Time:        2019-11-26T15:31:25Z
    Message:                     Ingress has not yet been reconciled.
    Reason:                      IngressNotConfigured
    Status:                      Unknown
    Type:                        Ready
    Last Transition Time:        2019-11-26T15:31:25Z
    Message:                     Ingress has not yet been reconciled.
    Reason:                      IngressNotConfigured
    Status:                      Unknown
    Type:                        RoutesReady
  Latest Created Revision Name:  helloworld-go-mc27h
  Latest Ready Revision Name:    helloworld-go-mc27h
  Observed Generation:           1
  Traffic:
    Latest Revision:  true
    Percent:          100
    Revision Name:    helloworld-go-mc27h
  URL:                https://helloworld-go.default.redhost.cloud
Events:
  Type    Reason   Age                From                Message
  ----    ------   ----               ----                -------
  Normal  Created  23m                service-controller  Created Configuration "helloworld-go"
  Normal  Created  23m                service-controller  Created Route "helloworld-go"
  Normal  Updated  11m (x7 over 23m)  service-controller  Updated Service "helloworld-go"

添加标签serving.knative.dev/visibility=cluster-local会使问题消失,但只有在没有SSL的情况下才能在内部访问。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-11-27 00:52:42

问题是我已经安装了常规的Istio,在那里您特别需要带有SDS的Istio。https://knative.dev/docs/serving/using-auto-tls/

此外,要确保使用cert-manager 0.10.0,因为当前不支持0.11.0。https://github.com/knative/serving/issues/6011

一旦我做了这些,一切都成功了:

代码语言:javascript
运行
复制
NAME            URL                                           LATESTCREATED         LATESTREADY           READY   REASON
helloworld-go   https://helloworld-go.default.redhost.cloud   helloworld-go-mc27h   helloworld-go-mc27h   True```
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59054617

复制
相关文章

相似问题

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