Skip to content

Commit 5d7ff7b

Browse files
committed
Using 1 replica for zk deployment
1 parent a4517d4 commit 5d7ff7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

k8s/zk.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ spec:
1818
clusterIP: None
1919
selector:
2020
zk-name: zk
21-
component: zk
2221
---
2322
apiVersion: apps/v1
2423
kind: StatefulSet
@@ -34,6 +33,7 @@ spec:
3433
zk-name: zk
3534
component: zk
3635
replicas: 1
36+
podManagementPolicy: "Parallel"
3737
template:
3838
metadata:
3939
labels:
@@ -69,12 +69,14 @@ spec:
6969
readinessProbe:
7070
exec:
7171
command:
72-
- zk_status.sh
72+
- zkServer.sh
73+
- status
7374
initialDelaySeconds: 20
7475
timeoutSeconds: 10
7576
livenessProbe:
7677
exec:
7778
command:
78-
- zk_status.sh
79+
- zkServer.sh
80+
- status
7981
initialDelaySeconds: 20
8082
timeoutSeconds: 10

0 commit comments

Comments
 (0)