Knative (GKE) 上带有证书管理器的示例应用 "helloworld-go" 给出状态 IngressNotConfigured
Example app "helloworld-go" on Knative (GKE) with cert-manager gives status IngressNotConfigured
我正在尝试 运行 在 GKE 上使用 cert-manager 的 helloworld-go 示例。
我安装了没有 sidecar 注入的 Istio,cert-manager 0.11 并设置了 Auto SSL 和 DNS。
当我 运行 kubectl get ksvc
它显示 IngressNotConfigured
。知道为什么吗?
$ 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
$ 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 的情况下在内部访问。
问题是我安装了常规 Istio,而您特别需要 Istio 和 SDS。
https://knative.dev/docs/serving/using-auto-tls/
另外请务必使用 cert-manager 0.10.0,因为目前不支持 0.11.0。
https://github.com/knative/serving/issues/6011
一旦我做了这些,一切都正常了:
NAME URL LATESTCREATED LATESTREADY READY REASON
helloworld-go https://helloworld-go.default.redhost.cloud helloworld-go-mc27h helloworld-go-mc27h True```
我正在尝试 运行 在 GKE 上使用 cert-manager 的 helloworld-go 示例。
我安装了没有 sidecar 注入的 Istio,cert-manager 0.11 并设置了 Auto SSL 和 DNS。
当我 运行 kubectl get ksvc
它显示 IngressNotConfigured
。知道为什么吗?
$ 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
$ 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 的情况下在内部访问。
问题是我安装了常规 Istio,而您特别需要 Istio 和 SDS。 https://knative.dev/docs/serving/using-auto-tls/
另外请务必使用 cert-manager 0.10.0,因为目前不支持 0.11.0。 https://github.com/knative/serving/issues/6011
一旦我做了这些,一切都正常了:
NAME URL LATESTCREATED LATESTREADY READY REASON
helloworld-go https://helloworld-go.default.redhost.cloud helloworld-go-mc27h helloworld-go-mc27h True```