Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kubernetes 命名空间中的Istio自定义网关_Kubernetes_Istio_Envoyproxy - Fatal编程技术网

Kubernetes 命名空间中的Istio自定义网关

Kubernetes 命名空间中的Istio自定义网关,kubernetes,istio,envoyproxy,Kubernetes,Istio,Envoyproxy,我正在尝试公开一个带有Istio网关和VirtualService的服务,请按照 我正在运行一个带有minikube隧道的minikube集群,以便istio-ingresgateway有一个LoadBalancerIP。我将/etc/hosts修改为指向example.com到istio-ingresgateway服务IP 10.111.251.46 example.com 请求似乎确实到达了特使代理curl-v-X跟踪http://example.com返回 * Trying 10.1

我正在尝试公开一个带有Istio网关和VirtualService的服务,请按照

我正在运行一个带有
minikube隧道的
minikube
集群,以便
istio-ingresgateway
有一个
LoadBalancer
IP。我将
/etc/hosts
修改为指向
example.com
istio-ingresgateway
服务IP

10.111.251.46 example.com
请求似乎确实到达了特使代理<代码>curl-v-X跟踪http://example.com
返回

*   Trying 10.111.251.46...
* TCP_NODELAY set
* Connected to example.com (10.111.251.46) port 80 (#0)
> TRACE / HTTP/1.1
> Host: example.com
> User-Agent: curl/7.64.1
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< date: Wed, 29 Apr 2020 12:32:49 GMT
< server: istio-envoy
< content-length: 0
< 
* Connection #0 to host example.com left intact
* Closing connection 0
*正在尝试10.111.251.46。。。
*TCP_节点集
*已连接到example.com(10.111.251.46)端口80(#0)
>TRACE/HTTP/1.1
>主持人:example.com
>用户代理:curl/7.64.1
>接受:*/*
> 
未找到
评论中提到@Piotr Malec

你链接的博客文章已过时。这篇博文是根据Istio 1编写的,因此其中一些内容可能已经过时


我建议使用,因为istio 1.5是添加自定义入口网关的最佳选项

这是公开的,安装它的方法很少

例如,通过yaml,您可以使用默认入口网关安装istio默认配置文件,此外,它将在命名空间dev中创建第二个入口网关



希望你觉得这很有用。

正如@Piotr Malec在评论中提到的那样

你链接的博客文章已过时。这篇博文是根据Istio 1编写的,因此其中一些内容可能已经过时


我建议使用,因为istio 1.5是添加自定义入口网关的最佳选项

这是公开的,安装它的方法很少

例如,通过yaml,您可以使用默认入口网关安装istio默认配置文件,此外,它将在命名空间dev中创建第二个入口网关



希望你觉得这很有用。

嗨,你链接的博客文章已经过时了
此博客文章是根据Istio 1编写的,因此其中一些内容现在可能已经过时。
您的minikube群集上有什么Istio版本?我正在Kubernetes 1.18、minikube 1.9.1上运行Istio 1.5嗨,您链接的博客文章已经过时
这篇博客文章是假设Istio 1编写的,因此其中一些内容现在可能已经过时。
您的minikube群集上有什么Istio版本?我在Kubernetes 1.18和minikube 1.9.1上运行Istio 1.5
*   Trying 10.111.251.46...
* TCP_NODELAY set
* Connected to example.com (10.111.251.46) port 80 (#0)
> TRACE / HTTP/1.1
> Host: example.com
> User-Agent: curl/7.64.1
> Accept: */*
> 
< HTTP/1.1 404 Not Found
< date: Wed, 29 Apr 2020 12:32:49 GMT
< server: istio-envoy
< content-length: 0
< 
* Connection #0 to host example.com left intact
* Closing connection 0