应用virtual-service.yaml会导致超时(30s),同时kubectl应用-f。
周一,我像往常一样在ISTIO-1.2.4上重新配置了我的虚拟服务。今天,我遇到了应用虚拟服务的超时。我做了什么
% kubectl -n istio-system apply -f virtual-service.yaml
Error from server (Timeout): error when creating "virtual-service.yaml": Timeout: request did not complete within requested timeout 30s
% kubectl -n istio-system delete pod istio-ingressgateay*
% kubectl -n istio-system exec istio-ingressgateway* -c istio-proxy -- curl -X POST http://localhost:15000/logging?level=debug
% kubectl -n istio-system logs --follow istio-ingressgateway* -c istio-proxy
% kubectl -n istio-system get gateways.networking.istio.io
NAME AGE
istio-gateway 3d19h
% kubectl -n istio-system get virtualservices.networking.istio.io
NAME GATEWAYS HOSTS AGE
infrastructure-istio-k8s-ingress [istio-gateway] [${DOMAIN}] 3d19h
% 我仍然收到30s超时消息,没有新的虚拟服务,并且我没有在日志中做任何与虚拟服务相关的事情。
配置virtual-service.yaml如下所示
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: default-istio-k8s-ingress
namespace: istio-system
spec:
gateways:
- istio-gateway-149-81-86-74
hosts:
- "test.procom.energy"
http:
- match:
- uri:
regex: "/head.*s"
rewrite:
uri: "/headers"
route:
- destination:
host: httpbin.default.svc.cluster.local
port:
number: 8000
weight: 100
- match:
- uri:
exact: /ip
route:
- destination:
host: httpbin.default.svc.cluster.local
port:
number: 8000
weight: 100
- match:
- uri:
exact: /user-agent
route:
- destination:
host: httpbin.default.svc.cluster.local
port:
number: 8000
weight: 100我希望有一个新的应用虚拟服务,但我只看到超时。在这种情况下,我没有任何重新配置虚拟服务或应用新服务的可能性。
发布于 2019-08-30 19:00:44
祝你好运。
我修好了。在令人失望的深入查看之后,我没有重新加载所有的POD (通过一个for循环)。在此之后,我重新启动了所有节点,并删除了istio-system名称空间中的所有副本集。我可以重新配置或应用我的虚拟服务。
致以最好的问候,Jan
https://stackoverflow.com/questions/57723225
复制相似问题