bookinfo-gateway.yaml 部署问题?

来源:13-4 部署BookInfo示例应用

weixin_慕妹858642

2022-03-01

$ kubectl apply -f /istio-1.9.5/samples/bookinfo/networking/bookinfo-gateway.yaml

Error from server (InternalError): error when creating “/istio-1.9.5/samples/bookinfo/networking/bookinfo-gateway.yaml”: Internal error occurred: failed calling webhook “validation.istio.io”: Post “https://istiod.istio-system.svc:443/validate?timeout=30s”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Error from server (InternalError): error when creating “/istio-1.9.5/samples/bookinfo/networking/bookinfo-gateway.yaml”: Internal error occurred: failed calling webhook “validation.istio.io”: Post “https://istiod.istio-system.svc:443/validate?timeout=30s”: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

[root@node-1 addons]# kubectl get pods
NAME READY STATUS RESTARTS AGE
details-v1-79f774bdb9-cflnm 2/2 Running 0 127m
productpage-v1-6b746f74dc-r54tj 2/2 Running 0 127m
ratings-v1-b6994bb9-c4n4g 2/2 Running 0 127m
reviews-v1-545db77b95-jhfnx 2/2 Running 0 127m
reviews-v2-7bf8c9648f-9bx76 2/2 Running 0 127m
reviews-v3-84779c7bbc-mh65j 2/2 Running 0 127m

https://github.com/istio/istio/issues/22319 解决还是不行
[root@node-1 addons]# istioctl manifest apply --set addonComponents.grafana.enabled=true
Error: generated config failed semantic validation: ! addonComponents.grafana.enabled is deprecated; use the samples/addons/ deployments instead

能否详细指导下 谢谢

写回答

1回答

刘果国

2022-03-02

先排除一下网络问题,看下istio是否收到请求,以及它的日志

0
1
weixin_慕妹858642
好了 确实是虚拟机网络有问题 今天重新执行命令就好了
2022-03-02
共1条回复

Kubernetes生产落地全程实践

一个互联网公司落地Kubernetes全过程点点滴滴

2293 学习 · 2216 问题

查看课程