.Net Core Background Service on Kubernetes

Shreekumar Suggamad 131 Reputation points
2022-12-29T05:44:17.05+00:00

I have a .Net Core Background Service that I hosted on Azure Kubernetes Service. Background Service needs connectivity to some remote Kafka Cluster to read messages as shown in the below image.

What are the possible options here to establish the traffic between services running inside Kubernetes and Confluent Kafka Cluster?

274628-image.png

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,115 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akram Kathimi 396 Reputation points Microsoft Employee
    2022-12-29T09:25:40.733+00:00

    Hi @Shreekumar Suggamad ,

    Thank you for your question.

    The simplest way to achieve connectivity is to setup VNET peering between the AKS Vnet and the Kafka Vnet.

    Please refer to this document for the steps on how setup the Vnet peering.
    For more information about network peering please check this document, where it mentions:

    For peered virtual networks, resources in either virtual network can directly connect with resources in the peered virtual network.

    Let me know if you need anything else.
    Please "Accept as Answered" if it helped, so that it can help others in the community looking for help on similar topics.

    No comments