简体   繁体   English

如何在没有负载均衡器和入口 controller 的情况下将域指向 Kubernetes 集群

[英]How to point domain to Kubernetes cluster without Load Balancer and Ingress controller

Let's suppose I have bare-metal servers forming a Kubernetes cluster where I am deploying my application.假设我有裸机服务器,形成一个 Kubernetes 集群,我正在其中部署我的应用程序。 How can I point one domain name to all of the worker nodes of the cluster without a Load Balancing Service or Ingress Controller?在没有负载平衡服务或入口 Controller 的情况下,如何将一个域名指向集群的所有工作节点?

One suggestion could be to forget its Kubernetes worker nodes, and think about how you will give some domain pointing to a set of instances?一个建议可能是忘记它的 Kubernetes 工作节点,并考虑如何将一些域指向一组实例? Imagine you are running copy of your static website in 10 servers and you want to have same domain to all the nodes?想象一下,您正在 10 台服务器上运行 static 网站的副本,并且您希望所有节点都拥有相同的域? You have either an external load balancer or a reverse proxy.您有外部负载平衡器或反向代理。 But the biggest question why do you want to do that as worker nodes are short-lived you got to be dynamic about load balancing them right?但是最大的问题是为什么你要这样做,因为工作节点是短暂的,你必须动态地对它们进行负载平衡,对吗? Thats where a Service or Ingress will help, as it knows when a worker node leaves or gets added to cluster dynamically for you.这就是服务或入口将提供帮助的地方,因为它知道工作节点何时离开或为您动态添加到集群中。 Checkout these possibilities listed here https://kubernetes.github.io/ingress-nginx/deploy/baremetal/查看此处列出的这些可能性https://kubernetes.github.io/ingress-nginx/deploy/baremetal/

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

相关问题 Kubernetes中没有负载均衡器的Nginx入口控制器 - Nginx ingress controller without load balancer in Kubernetes Kubernetes Ingress控制器无负载均衡器 - Kubernetes Ingress Controller without Load Balancer 没有负载均衡器的 Kubernetes 入口无法在集群外工作 - Kubernetes ingress without load balancer not working outside the cluster Kubernetes - 如何从“内部负载均衡器”切换到“入口控制器” - Kubernetes - how to switch from “internal Load Balancer” to “ingress controller” 如何在没有负载均衡器的情况下设置kubernetes nginx入口? - How to setup kubernetes nginx ingress without load balancer? Kubernetes 负载均衡器 Oracle Cloud NGINX 入口控制器问题 - Kubernetes Load Balancer Oracle Cloud NGINX ingress controller problem 将外部 Kubernetes 服务从负载均衡器迁移到入口控制器 - Migrating an external Kubernetes service from load balancer to ingress controller kubernetes nginx 入口 controller aws 应用程序负载均衡器 404 错误 - kubernetes nginx ingress controller aws application load balancer 404 error 如何使用入口设置负载均衡器 nginx controller - How to setup load balancer with ingress nginx controller 如何使用 kubeadm 在 EC2 上部署的 Kubernetes 将 AWS 负载均衡器连接到 nginx 入口控制器? - How to connect an AWS Load Balancer to nginx ingress controller with Kubernetes deployed on EC2 with kubeadm?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM