简体   繁体   English

通过主机网络(裸机)的Istio入口控制器

[英]Istio ingress-controller via host network (bare-metal)

I am trying to use of Istio in bare-metal and I wanted to use the minimum resources needed just to get an Ingress controller with Envoy and Cert-Manager (maybe later evolving to the use of more advanced service mesh features). 我正在尝试在裸机中使用Istio,我想使用所需的最少资源,以便通过Envoy和Cert-Manager获得一个Ingress控制器(也许以后会发展为使用更高级的服务网格功能)。 I tried following this docs: Istio Kubernetes Ingress with Cert-Manager Demonstrates how to obtain Let's Encrypt TLS certificates for Kubernetes Ingress automatically using Cert-Manager. 我尝试按照此文档进行操作: 使用Cert-Manager的Istio Kubernetes Ingress演示如何使用Cert-Manager自动获取让我们为Kubernetes Ingress加密TLS证书。

My main problem is that I am in bare-metal and want to use neither LoadBalancer nor NodePort. 我的主要问题是我处于裸机状态,并且不想使用LoadBalancer和NodePort。 I was going for a host-network approach as the analogous solution using nginx here . 我打算使用主机网络方法作为此处使用nginx的类似解决方案。 1) Can I use istio to replace my current nginx-ingress controller with Hostnetwork? 1)我可以使用istio将当前的nginx-ingress控制器替换为Hostnetwork吗?

Setup tried (with no success): 尝试安装(没有成功):

helm install install/kubernetes/helm/istio-init --name istio-init --namespace istio-system
helm install install/kubernetes/helm/istio --name istio --namespace istio-system \
--values install/kubernetes/helm/istio/values-istio-minimal.yaml

2) If (1) is possible, can I use istio helm chart with istio-minimal (just istio-pilot) for that? 2)如果(1)可行,我可以使用istio-minimal(仅istio-pilot)的istio掌舵图吗? What is the recommended minimal profile setup in this case? 在这种情况下,建议的最小配置文件设置是什么?

The istio.io document for Ingress with Cert-Manager needs you to use the ingress-gateway object to attach it to a load balancer, so it's not an alternative in this case. 带有Cert-Manager的Ingressistio.io文档需要您使用ingress-gateway对象将其附加到负载均衡器,因此在这种情况下,它不是替代方法。

The Nginx approach is feasible as you can use Cert-Manager with the Nginx ingress class to automatically manage your certificates (replacing the Envoy-based Istio resources). Nginx方法是可行的,因为您可以将Cert-Manager与Nginx入口类一起使用来自动管理您的证书(替换基于Envoy的Istio资源)。

Now, the issue is that you have to redirect all the Nginx incoming traffic into the Istio mesh. 现在,问题在于您必须将所有Nginx传入流量重定向到Istio网格中。

Although this is integration is not yet natively supported, there are ways to make them work together that might end up rather hacky. 尽管集成本身尚不支持集成, 但是有一些方法可以使它们协同工作 ,但最终可能会很麻烦。

Unless you're having an issue that is not described in the question, I don't think having the minimal Istio installation has any relationship with this scenario. 除非您遇到的问题未解决,否则我认为最小的Istio安装与这种情况没有任何关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM