File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 32
32
{{- .Values.parseable.highAvailability.ingestor.labels | toYaml | nindent 8 }}
33
33
{{- include "parseable.ingestorLabelsSelector" . | nindent 8 }}
34
34
spec :
35
+ initContainers :
36
+ - name : wait-for-query-service
37
+ image : curlimages/curl:latest # Lightweight image with curl
38
+ command :
39
+ - /bin/sh
40
+ - -c
41
+ - |
42
+ echo "Waiting for query service readiness at /api/v1/readiness..."
43
+ for i in $(seq 1 60); do
44
+ if curl -sf http://{{ include "parseable.fullname" . }}-querier-service.{{ .Release.Namespace }}/api/v1/readiness; then
45
+ echo "Query service is ready!"
46
+ exit 0
47
+ fi
48
+ echo "Query service is not ready yet. Retrying in 2 seconds..."
49
+ sleep 2
50
+ done
51
+ echo "Query service did not become ready in time. Exiting."
52
+ exit 1
35
53
terminationGracePeriodSeconds : 10
36
54
serviceAccountName : {{ include "parseable.serviceAccountName" . }}
37
55
containers :
You can’t perform that action at this time.
0 commit comments