Skip to content

Commit 5bb49e3

Browse files
committed
With explicit log4j path we can change config mount ...
to not mix with sample config. See solsson/dockerfiles#10.
1 parent 6f8f6d4 commit 5bb49e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

50kafka.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
image: solsson/kafka:0.11.0.0@sha256:b27560de08d30ebf96d12e74f80afcaca503ad4ca3103e63b1fd43a2e4c976ce
3232
env:
3333
- name: KAFKA_LOG4J_OPTS
34-
value: -Dlog4j.configuration=file:/opt/kafka/config/log4j.properties
34+
value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
3535
- name: JMX_PORT
3636
value: "5555"
3737
ports:
@@ -41,7 +41,7 @@ spec:
4141
- -c
4242
- >
4343
./bin/kafka-server-start.sh
44-
./config/server.properties
44+
/etc/kafka/server.properties
4545
--override zookeeper.connect=zookeeper:2181
4646
--override log.retention.hours=-1
4747
--override log.dirs=/var/lib/kafka/data/topics
@@ -59,7 +59,7 @@ spec:
5959
- 'echo "" | nc -w 1 127.0.0.1 9092'
6060
volumeMounts:
6161
- name: config
62-
mountPath: /opt/kafka/config
62+
mountPath: /etc/kafka
6363
- name: data
6464
mountPath: /var/lib/kafka/data
6565
volumes:

0 commit comments

Comments
 (0)