External load balancer for Managed kafka service

Hello,

I was wondering if it is possible to expose “Managed service for Apache Kafka” to the public internet using any external load balancer. Currently, there is no option to create the managed service natively with public access.

Any help would be appreciated!

Hi @hmrramzi ,

Welcome to Google Cloud Community!

To achieve your goal of exposing Managed service for Apache Kafka externally while maintaining security, you may check this workaround:

Deploy Apache Kafka on Google Kubernetes Engine (GKE) and use an external load balancer:

To access the service from the internet, deploy NodePort service or the Load Balancer service. A nodePort value is provided by Kubernetes when you create a Service of type NodePort. Then the Service is accessible by using the IP address of any node along with the nodePort value. External clients call the Service by using the external IP address of a node along with the TCP port specified by nodePort. If you deploy the Load Balancer service, clients can send requests to the IP address of a network load balancer and you can access it from the internet. Please refer to this documentation.

  • For installing the Apache Kafka to a Google Kubernetes Engine (GKE) cluster, you may use Google Cloud Marketplace, please refer to the documentation
  • For installing the Apache Kafka to a Google Kubernetes Engine (GKE) cluster as a Kubernetes StatefulSet

For more details on Kafka networking, refer to on below documentations:
Networking for Managed Service for Apache Kafka

You may also reach out to Google Cloud Support for more detailed insights and assistance.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.