Skip to content

Commit

Permalink
Add delay in service startup to give enough time for mongodb setup to…
Browse files Browse the repository at this point in the history
… complete
  • Loading branch information
amithins committed Oct 25, 2018
1 parent 3325a88 commit 8934841
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ spec:
httpGet:
path: /executorservice/api
port: {{ .Values.insightExecutor.internalPort }}
initialDelaySeconds: 180
initialDelaySeconds: 600
periodSeconds: 10
readinessProbe:
httpGet:
path: /executorservice/api
port: {{ .Values.insightExecutor.internalPort }}
initialDelaySeconds: 180
initialDelaySeconds: 600
periodSeconds: 10
resources:
{{ toYaml .Values.insightExecutor.resources | indent 10 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
nc -z -w 2 {{ .Release.Name }}-elasticsearch 9200 && echo elasticsearch ok;
do sleep 2;
done;
sleep 40
containers:
- name: {{ .Values.insightServer.name }}
image: {{ .Values.insightServer.image }}:{{ default .Chart.AppVersion .Values.insightServer.version }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ spec:
until nc -z -w 2 {{ .Release.Name }}-mongodb 27017 && echo mongodb ok && \
nc -z -w 2 {{ .Release.Name }}-elasticsearch 9200 && echo elasticsearch ok;
do sleep 2;
done
done;
sleep 10
- name: set-password
image: "{{ .Values.initContainerImage }}"
command:
Expand Down

0 comments on commit 8934841

Please sign in to comment.