Search code examples
kubernetesapache-kafkabitnami

How to make bitnami/kafka accessible from external via clusterip


On this document.

https://github.com/bitnami/charts/tree/master/bitnami/kafka

it mentioned following:

Note: the deployed ingress must contain the following block:

tcp:
  9094: "{{ .Release.Namespace }}/{{ include "kafka.fullname" . }}-0-external:9094"
  9095: "{{ .Release.Namespace }}/{{ include "kafka.fullname" . }}-1-external:9094"
  9096: "{{ .Release.Namespace }}/{{ include "kafka.fullname" . }}-2-external:9094"

what does this means? what is this configuration? is this helm chart configuration or k8s configuration?


Solution

  • I resolved this by referring to this guide.

    https://minikube.sigs.k8s.io/docs/tutorials/nginx_tcp_udp_ingress/

    I was missing this step

    kubectl patch deployment ingress-nginx-controller --patch "$(cat ingress-nginx-controller-patch.yaml)" -n ingress-nginx
    
    

    ingress-nginx-controller-patch.yaml

    spec:
      template:
        spec:
          containers:
          - name: controller
            ports:
             - containerPort: 6379
               hostPort: 6379