Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 711
王子1986 Avatar asked Dec 18 '25 16:12

王子1986


1 Answers

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

like image 51
王子1986 Avatar answered Dec 21 '25 15:12

王子1986