You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
To connect to your Kafka controller+broker nodes from outside the cluster, follow these instructions:
Kafka brokers domain: You can get the external node IP from the Kafka configuration file with the following commands (Check the EXTERNAL listener)
1. Obtain the pod name:
***kubectl get pods --namespace default -l "app.kubernetes.io/name=kafka,app.kubernetes.io/instance=kafka,app.kubernetes.io/component=kafka"***
2. Obtain pod configuration:
kubectl exec -it KAFKA_POD -- cat /opt/bitnami/kafka/config/server.properties | grep advertised.listeners
Kafka brokers port: You will have a different node port for each Kafka broker. You can get the list of configured node ports using the command below:
echo "$(kubectl get svc --namespace default -l "app.kubernetes.io/name=kafka,app.kubernetes.io/instance=kafka,app.kubernetes.io/component=kafka,pod" -o jsonpath='{.items[*].spec.ports[0].nodePort}' | tr ' ' '\n')"
The EXTERNAL listener for Kafka client connections from within your cluster have been configured with the following settings:
- SASL authentication
...
Running kubectl get pods --namespace default -l "app.kubernetes.io/name=kafka,app.kubernetes.io/instance=kafka,app.kubernetes.io/component=kafka" produces no results.
The pods created are
kafka-controller-0
kafka-controller-1
kafka-controller-2
and they all have the label "app.kubernetes.io/component"="controller-eligible".
I'm not sure if the pods should be labeled with "app.kubernetes.io/component"="kafka" or the instructions should be changed. Consequently I'm unable to connect to the kafka cluster "externally" (from my macs terminal) though I'm not sure if this is because of docker desktop setup or because the service selector is using the wrong label.
Name and Version
bitnami/kafka 31.0.0
What architecture are you using?
arm64
What steps will reproduce the bug?
move the local.yaml file to ./values/local.yaml
Run
helm install -f values/local.yaml kafka .
The following message was printed to stdout
kubectl get pods --namespace default -l "app.kubernetes.io/name=kafka,app.kubernetes.io/instance=kafka,app.kubernetes.io/component=kafka"
produces no results.The pods created are
and they all have the label "app.kubernetes.io/component"="controller-eligible".
Are you using any custom parameters or values?
What is the expected behavior?
I'm not sure if the pods should be labeled with "app.kubernetes.io/component"="kafka" or the instructions should be changed. Consequently I'm unable to connect to the kafka cluster "externally" (from my macs terminal) though I'm not sure if this is because of docker desktop setup or because the service selector is using the wrong label.
What do you see instead?
No pods are selected
Additional information
No response
The text was updated successfully, but these errors were encountered: