[英]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%2Fromulus , https://github.com/containous/traefik/blob/fa25c8ef221d89719bd0c491b66bbf54e3d40438/docs/toml.md#kubernetes-ingress-backend ,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.