[英]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.