Merge pull request #165 from sirius0xdev/fix/kafka-mount-path
fix Kafka config mount: use /opt/kafka/config/ path instead of /etc/k…
This commit is contained in:
commit
572f9f2c0f
1 changed files with 3 additions and 3 deletions
|
|
@ -82,8 +82,8 @@ spec:
|
|||
- -c
|
||||
- |
|
||||
export KAFKA_CLUSTER_ID="$(/opt/kafka/bin/kafka-storage.sh random-uuid)"
|
||||
/opt/kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c /etc/kafka/server.properties --ignore-formatted
|
||||
exec /opt/kafka/bin/kafka-server-start.sh /etc/kafka/server.properties
|
||||
/opt/kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c /opt/kafka/config/server.properties --ignore-formatted
|
||||
exec /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
|
|
@ -99,7 +99,7 @@ spec:
|
|||
- ALL
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/kafka/server.properties
|
||||
mountPath: /opt/kafka/config/server.properties
|
||||
subPath: server.properties
|
||||
- name: data
|
||||
mountPath: /var/lib/kafka/data
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue