我在尝试让 Istio 在我的集群上运行时遇到问题。我的基础设施如下所示:
我有一个 Magento 商店,用清漆作为前端缓存。它在安装 istio 之前就可以工作。我已经启用了特使注入。Varnish 部署在 pod 中,并且有自己的服务未缓存重定向到 magento 服务。
当我尝试从 varnish 卷曲到 magento 时,问题就出现了。
如果我从 varnish 卷曲 magento 服务,我会重定向到 magento URL(这是预期的行为)
root@varnish-6468d5958d-dvxhx:/# curl -v store-es
* Rebuilt URL to: store-es/
* Trying 10.32.97.229...
* TCP_NODELAY set
* Connected to store-es (10.32.97.229) port 80 (#0)
> GET / HTTP/1.1
> Host: store-es
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< server: envoy
< date: Wed, 07 Nov 2018 11:08:47 GMT
< content-type: …Run Code Online (Sandbox Code Playgroud)