简体   繁体   English

Dockerize 并部署在 AKS 上有 Kafka 消费者的 Spring 应用程序?

[英]Dockerize and deploy the Spring App that has Kafka consumer on AKS?

At present, we have a Java spring boot application deployed on the VM which consumers the message from Kafka.目前,我们在 VM 上部署了一个 Java spring 启动应用程序,它使用来自 Kafka 的消息。

We have an Enterprise Kafka Cluster deployed on the VMs.我们在虚拟机上部署了一个企业 Kafka 集群。 It uses the standard ports - eg: 9092 & 2181.它使用标准端口 - 例如:9092 和 2181。

Requirement : We want to deploy this application Azure Kubernetes Services (AKS).要求:我们要部署此应用程序 Azure Kubernetes 服务 (AKS)。

Ask : Is there anything specific (eg: port ) needs to be done in the dockerfile or kubernetes manifest yaml?:在 dockerfile 或 kubernetes 清单 yaml 中是否需要做任何特定的事情(例如:端口)?

I would assume that as long as the AKS can connect (VNET - VNET) with the Kafka Cluster that should be sufficient.我认为只要 AKS 可以将(VNET - VNET)与 Kafka 集群连接就足够了。

please suggest.请建议。

Kafka clients don't need to expose any port mappings Kafka 客户端不需要公开任何端口映射

Your assumption is correct, that given the proper VPC settings, then communicate should be fine.您的假设是正确的,即在适当的 VPC 设置下,通信应该没问题。

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

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