From a2d324d509d7041642123f22b589ad4925ea1199 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Wed, 26 Jul 2017 11:39:53 +0200 Subject: [PATCH] Default shell on Debian shows the same symptom ... of not forwarding signals as Alpine did. Kafka logs say nothing, and after 30s the container is terminated. With /bin/bash instead the log indicates shutdown behavior. This reverts commit c188f43cb8a252cd685a4944d35577ebc17a3668. --- 50kafka.yml | 2 +- zookeeper/50pzoo.yml | 2 +- zookeeper/51zoo.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/50kafka.yml b/50kafka.yml index 3ec2bb53..051349e9 100644 --- a/50kafka.yml +++ b/50kafka.yml @@ -37,7 +37,7 @@ spec: ports: - containerPort: 9092 command: - - /bin/sh + - /bin/bash - -c - > ./bin/kafka-server-start.sh diff --git a/zookeeper/50pzoo.yml b/zookeeper/50pzoo.yml index ef12291b..ef77c5cb 100644 --- a/zookeeper/50pzoo.yml +++ b/zookeeper/50pzoo.yml @@ -44,7 +44,7 @@ spec: - name: JMX_PORT value: "5555" command: - - /bin/sh + - /bin/bash - -euc - > export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + 1)); diff --git a/zookeeper/51zoo.yml b/zookeeper/51zoo.yml index 0f5972cf..6eb81d42 100644 --- a/zookeeper/51zoo.yml +++ b/zookeeper/51zoo.yml @@ -44,7 +44,7 @@ spec: - name: JMX_PORT value: "5555" command: - - /bin/sh + - /bin/bash - -euc - > export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + 4));