Kafka pods cannot be started successfully
Kafka pods cannot be started successfully(sometimes).
The kafka pods cannot connect to zookeepers  with timeout of
6000 ms, therefore, set zookeeper.connection.timeout.ms = 36000.
@@ -106,6 +106,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
+ - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
+ value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka0"
ports:
@@ -146,6 +148,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
+ - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
+ value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka1"
ports:
@@ -186,6 +190,8 @@ spec:
value: "3"
- name: KAFKA_ZOOKEEPER_CONNECT
value: "zookeeper0:2181,zookeeper1:2181,zookeeper2:2181"
+ - name: KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS
+ value: "36000"
- name: KAFKA_ADVERTISED_HOST_NAME
value: "kafka2"
ports:
