如何为运行Cross Kubernete群集的应用程序部署一个入口点?
我有两个K8S群集设置,一个在AWS EKS上,另一个在GCP上。我设置了一个用于管理这两个群集的牧场服务器。我有一个应用程序(appa
),该应用程序包装在掌舵图中。该应用程序只是由nodejs + Express
创建的REST API服务器。
它通过牧场主部署到两个群集。部署后,appa
分别在两个群集中运行。
我有另一个应用程序(appb
)(在K8之外运行),该应用程序在数据库流上侦听,需要调用appa
(在K8S群集中)以处理更改事件。
我的问题是我如何部署输入点,例如Nginx,它将将appb
的请求转发到appa
,群集中的一个POD应该服务于此请求。
I have two K8S clusters setup, one on AWS EKS, the other is on GCP. I setup a rancher server which is used to manage this two clusters. I have an application (appA
) which is packaged in a helm chart. The application is just a rest api server created by nodejs + express
.
It is deployed to both clusters via Rancher. After deploy, appA
are running in the two clusters separately.
I have another application (appB
) (running outside of K8S) which is listening on a database stream and it needs to call appA
(in the K8S clusters) to process the change events.
My question is how I can deploy an entry point, like nginx, which will forward the appB
's requests to appA
, one of the pod from the clusters should serve this request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
和GKE LoadBalancers URL作为后端服务器。
请点击以下链接
.com/nginx/admin-guide/load-balancer/http-load-balancer/
and GKE loadbalancers urls as backend servers.
Follow the below link
https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/