简体   繁体   English

如何在kubernetes pod中使用具有相同端口的虚拟主机?

[英]How can I use vhosts with the same port in kubernetes pod?

I have an existing web application with frontend and a backend which runs on the same port (HTTPS/443) on different sub domains. 我有一个具有前端和后端的现有Web应用程序,该应用程序在不同子域的同一端口(HTTPS / 443)上运行。 Do I really need a load balancer in my pod to handle all incoming web traffic or does Kubernetes has something already build in, which I missed so far? 我是否真的需要在Pod中使用一个负载平衡器来处理所有传入的Web流量,或者Kubernetes是否已经内置了某些东西,但到目前为止我还是错过了?

I would encurage getting familiar with the concept of Ingress and IngressController http://kubernetes.io/docs/user-guide/ingress/ 我会确保熟悉Ingress和IngressController的概念http://kubernetes.io/docs/user-guide/ingress/

Simplifying things a bit, you can look at ingress as a sort of vhost/path service router/revproxy. 稍微简化一下,您可以将Ingress视为一种vhost / path服务路由器/ revproxy。

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

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