aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStaffan Olsson <staffan@repos.se>2017-07-26 11:24:55 +0200
committerStaffan Olsson <staffan@repos.se>2017-07-26 11:24:59 +0200
commit5bb49e3d40150ff79f57a043a353eb66182c8beb (patch)
treee9331e4890920b90cf296c4e7c54a1673a1ce507
parent6f8f6d460b8683c07e5201a82415abbe0e106463 (diff)
downloadkubernetes-kafka-5bb49e3d40150ff79f57a043a353eb66182c8beb.tar.gz
kubernetes-kafka-5bb49e3d40150ff79f57a043a353eb66182c8beb.tar.bz2
kubernetes-kafka-5bb49e3d40150ff79f57a043a353eb66182c8beb.zip
With explicit log4j path we can change config mount ...
to not mix with sample config. See https://github.com/solsson/dockerfiles/pull/10.
-rw-r--r--50kafka.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/50kafka.yml b/50kafka.yml
index 8536b1c..3ec2bb5 100644
--- a/50kafka.yml
+++ b/50kafka.yml
@@ -31,7 +31,7 @@ spec:
image: solsson/kafka:0.11.0.0@sha256:b27560de08d30ebf96d12e74f80afcaca503ad4ca3103e63b1fd43a2e4c976ce
env:
- name: KAFKA_LOG4J_OPTS
- value: -Dlog4j.configuration=file:/opt/kafka/config/log4j.properties
+ value: -Dlog4j.configuration=file:/etc/kafka/log4j.properties
- name: JMX_PORT
value: "5555"
ports:
@@ -41,7 +41,7 @@ spec:
- -c
- >
./bin/kafka-server-start.sh
- ./config/server.properties
+ /etc/kafka/server.properties
--override zookeeper.connect=zookeeper:2181
--override log.retention.hours=-1
--override log.dirs=/var/lib/kafka/data/topics
@@ -59,7 +59,7 @@ spec:
- 'echo "" | nc -w 1 127.0.0.1 9092'
volumeMounts:
- name: config
- mountPath: /opt/kafka/config
+ mountPath: /etc/kafka
- name: data
mountPath: /var/lib/kafka/data
volumes: