File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 58
58
command :
59
59
- ./bin/kafka-server-start.sh
60
60
- /etc/kafka/server.properties
61
+ lifecycle :
62
+ preStop :
63
+ exec :
64
+ command : ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
61
65
resources :
62
66
requests :
63
67
cpu : 100m
Original file line number Diff line number Diff line change 40
40
command :
41
41
- ./bin/zookeeper-server-start.sh
42
42
- /etc/kafka/zookeeper.properties
43
+ lifecycle :
44
+ preStop :
45
+ exec :
46
+ command : ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
43
47
ports :
44
48
- containerPort : 2181
45
49
name : client
Original file line number Diff line number Diff line change 43
43
command :
44
44
- ./bin/zookeeper-server-start.sh
45
45
- /etc/kafka/zookeeper.properties
46
+ lifecycle :
47
+ preStop :
48
+ exec :
49
+ command : ["sh", "-ce", "kill -s TERM 1; while $(kill -0 1 2>/dev/null); do sleep 1; done"]
46
50
ports :
47
51
- containerPort : 2181
48
52
name : client
You can’t perform that action at this time.
0 commit comments