Skip to content

Commit a765583

Browse files
committed
Add delay to k8s config so Alphas start after Zeros.
From this discussion: https://discuss.dgraph.io/t/kubernetes-contrib-config-doesnt-work-with-minikube/3592
1 parent e7170c3 commit a765583

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/config/kubernetes/dgraph-ha.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ spec:
210210
values:
211211
- dgraph-alpha
212212
topologyKey: kubernetes.io/hostname
213+
initContainers:
214+
- name: init-alpha
215+
image: busybox
216+
command: ['sh', '-xc', 'echo "Wait for Zeros to start" && sleep 10']
213217
containers:
214218
- name: alpha
215219
image: dgraph/dgraph:latest

0 commit comments

Comments
 (0)