首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >应用Istio虚拟服务时超时

应用Istio虚拟服务时超时
EN

Stack Overflow用户
提问于 2019-08-30 16:29:51
回答 1查看 588关注 0票数 0

应用virtual-service.yaml会导致超时(30s),同时kubectl应用-f。

周一,我像往常一样在ISTIO-1.2.4上重新配置了我的虚拟服务。今天,我遇到了应用虚拟服务的超时。我做了什么

代码语言:javascript
复制
% 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如下所示

代码语言:javascript
复制
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

我希望有一个新的应用虚拟服务,但我只看到超时。在这种情况下,我没有任何重新配置虚拟服务或应用新服务的可能性。

EN

回答 1

Stack Overflow用户

发布于 2019-08-30 19:00:44

祝你好运。

我修好了。在令人失望的深入查看之后,我没有重新加载所有的POD (通过一个for循环)。在此之后,我重新启动了所有节点,并删除了istio-system名称空间中的所有副本集。我可以重新配置或应用我的虚拟服务。

致以最好的问候,Jan

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57723225

复制
相关文章

相似问题

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