I'm not sure this is the correct place to post this question, but anyway...
When running kafka in kubernetes, the kafka config contains this:
listeners = PLAINTEXT://:tcp://10.0.0.186:9092
Which is leading to this error: No security protocol defined for listener
PLAINTEXT://:TCP
Here is the section of the kubernetes yaml file that defines kafka:
- image: wurstmeister/kafka
name: kafka
volumeMounts:
- name: kafka-vol
mountPath: /var/run/docker.sock
env:
- name: KAFKA_ADVERTISED_HOST_NAME
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: KAFKA_ADVERTISED_PORT
value: "9092"
- name: KAFKA_ZOOKEEPER_CONNECT
value: localhost:2181
- name: KAFKA_LISTENER_SECURITY_PROTOCOL_MAP
value: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
- name: KAFKA_ADVERTISED_PROTOCOL_NAME
value: OUTSIDE
- name: KAFKA_PROTOCOL_NAME
value: INSIDE
ports:
- containerPort: 9092
Can anyone see what I'm doing wrong?
Thanks