Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Only probe for zookeeper and cluster status if in cluster mode (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wknickless authored Jun 25, 2020
1 parent 3ccc656 commit bfa53bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ spec:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
initContainers:
{{- if .Values.properties.isNode }}
- name: zookeeper
image: {{ .Values.busybox.image }}
command:
Expand All @@ -78,6 +79,7 @@ spec:
echo "waiting for zookeeper..."
sleep 2
done
{{- end }}
{{- range $key, $value := .Values.initContainers }}
- name: {{ $key }}
{{ toYaml $value | indent 8 }}
Expand Down Expand Up @@ -205,6 +207,7 @@ spec:
exec:
command: ["/bin/sh", "-c", {{ .Values.postStart | quote }}]
{{- end }}
{{- if .Values.properties.isNode }}
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 20
Expand All @@ -229,6 +232,7 @@ spec:
jq . $NIFI_BASE_DIR/data/cluster.state
exit 1
fi
{{- end }}
livenessProbe:
initialDelaySeconds: 90
periodSeconds: 60
Expand Down

0 comments on commit bfa53bf

Please sign in to comment.