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
|
- -c
|
||||||
- |
|
- |
|
||||||
export KAFKA_CLUSTER_ID="$(/opt/kafka/bin/kafka-storage.sh random-uuid)"
|
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
|
/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 /etc/kafka/server.properties
|
exec /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
|
|
@ -99,7 +99,7 @@ spec:
|
||||||
- ALL
|
- ALL
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/kafka/server.properties
|
mountPath: /opt/kafka/config/server.properties
|
||||||
subPath: server.properties
|
subPath: server.properties
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /var/lib/kafka/data
|
mountPath: /var/lib/kafka/data
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue