简体   繁体   English

如何使Kubernetes“LoadBalancer”服务指向Ingress控制器?

[英]How to make a Kubernetes “LoadBalancer” service point to an Ingress controller?

I've been using Kubernete's LoadBalancer type service for incoming traffic on AWS. 我一直在使用Kubernete的LoadBalancer类型服务来处理AWS上的传入流量。 However, it is hard to terminate SSL at a service level, thus the idea of using an Ingress. 但是,很难在服务级别终止SSL,因此使用Ingress的想法。

However, a LoadBalancer service allows us to make as many rolling changes as we like to our deployments without having to configure our DNS. 但是, LoadBalancer服务允许我们对部署进行尽可能多的滚动更改,而无需配置DNS。 By using Ingress, you can only use NodePort and while we would like to use Ingress, mapping DNS to new node when the pod is deployed on another node is a problem. 通过使用Ingress,您只能使用NodePort ,而我们希望使用Ingress,当将pod部署在另一个节点上时,将DNS映射到新节点是一个问题。

Is there a way to point a Kubernetes to point to an Ingress controller or use a service type LoadBalancer with an Ingress controller to terminate SSL. 有没有办法指向Kubernetes指向Ingress控制器或使用服务类型LoadBalancer与Ingress控制器终止SSL。

We do not want to put our SSL certificates in a container, which is why this trouble. 我们不想把我们的SSL证书放在容器中,这就是为什么这个麻烦。

Is there a way to point a Kubernetes to point to an Ingress controller or use a service type LoadBalancer with an Ingress controller to terminate SSL. 有没有办法指向Kubernetes指向Ingress控制器或使用服务类型LoadBalancer与Ingress控制器终止SSL。

You can simply deploy the on metal (nginx, haproxy, traefic...) ingress controllers as a pod/daemonset/rc in your cluster, and front it with a service of type=loadbalancer. 您可以简单地将on metal(nginx,haproxy,traefic ...)入口控制器部署为集群中的pod / daemonset / rc,并使用type = loadbalancer的服务进行前置控制。 You can find these controllers in various places like: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx , https://libraries.io/go/github.com%2Ftimelinelabs%2Fromulus , https://github.com/containous/traefik/blob/fa25c8ef221d89719bd0c491b66bbf54e3d40438/docs/toml.md#kubernetes-ingress-backend , 您可以在以下各个地方找到这些控制器: https//github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx,https//libraries.io/go/github.com%2Ftimelinelabs%2Fromulushttps://github.com/containous/traefik/blob/fa25c8ef221d89719bd0c491b66bbf54e3d40438/docs/toml.md#kubernetes-ingress-backend

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

相关问题 如何在Azure中为Kubernetes Ingress控制器创建负载均衡器(IAAS) - How to create loadbalancer (IAAS) in Azure for Kubernetes Ingress controller Kubernetes入口服务应该是LoadBalancer或NodePort - Kubernetes ingress service should be LoadBalancer or NodePort kubernetes 负载均衡器服务 - 无法设置入口 ip - kubernetes loadbalancer service - unable to set ingress ip 将 kubernetes 服务从负载均衡器移动到入口 - Moving a kubernetes service from Loadbalancer to Ingress Kubernetes:负载均衡器和入口 - Kubernetes: loadbalancer and ingress Kubernetes 入口负载均衡器 IP - Kubernetes Ingress Loadbalancer IP 如何自定义由使用AWS NLB作为TCP服务的Kubernetes LoadBalancer类型服务创建的安全组入口规则 - How to customize the Security Group Ingress Rules created by a Kubernetes LoadBalancer type service that uses AWS NLB for TCP services 如何在Kubernetes中对LoadBalancer类型的服务发出请求? - How do I make requests on a service of type LoadBalancer in Kubernetes? Kubernetes nginx 入口控制器作为负载均衡器获取随机端口 - Kubernetes nginx ingress controller as loadbalancer gets random ports Kubernetes:通过 traefik 入口控制器处理与集群中多个 LoadBalancer 的连接 - Kubernetes: Handle connections with multiple LoadBalancer in cluster via traefik ingress controller
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM