Skip to content

Commit f2a302e

Browse files
committed
Connect by name resolution to individual zookeeper pods instead of
through the service. This helps troubleshoot issues like #310 by pointing out (by podIP) which actual zookeeper connection that failed. Also I like the simplification.
1 parent bec515c commit f2a302e

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--override"},
3+
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "zookeeper.connect=zoo:2181"}
4+
]

variants/scale-3-5-nopzoo/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ bases:
22
- ../scale-3-5
33
patchesStrategicMerge:
44
- ./only-zoo-5.yaml
5+
patchesJson6902:
6+
- target:
7+
group: apps
8+
version: v1
9+
kind: StatefulSet
10+
name: kafka
11+
namespace: kafka
12+
path: kafka-zookeeper-connect-only-zoo.json
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--override"},
3+
{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "zookeeper.connect=zoo:2181"}
4+
]

variants/scale-6-9/kustomization.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ patchesStrategicMerge:
44
- zoo-9.yaml
55
- kafka-6.yaml
66
patchesJson6902:
7+
- target:
8+
group: apps
9+
version: v1
10+
kind: StatefulSet
11+
name: kafka
12+
path: kafka-zookeeper-connect-only-zoo.json
713
# The nonroot image is distroless and doesn't support a shell that the prestop hook needs
814
- target:
915
group: apps

0 commit comments

Comments
 (0)