From 37b458b330bfb5b730896f9da8a4014d68513a53 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Mon, 23 Dec 2024 12:14:19 +0530 Subject: [PATCH 1/3] add init container on ingestor distributed --- helm/templates/ingestor-statefulset.yaml | 18 ++++++++++++++++++ helm/templates/querier-statefulset.yaml | 2 ++ helm/values.yaml | 14 +++++++------- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/helm/templates/ingestor-statefulset.yaml b/helm/templates/ingestor-statefulset.yaml index 684509e1a..06b2b50d2 100644 --- a/helm/templates/ingestor-statefulset.yaml +++ b/helm/templates/ingestor-statefulset.yaml @@ -32,6 +32,24 @@ spec: {{- .Values.parseable.highAvailability.ingestor.labels | toYaml | nindent 8 }} {{- include "parseable.ingestorLabelsSelector" . | nindent 8 }} spec: + initContainers: + - name: wait-for-query-service + image: curlimages/curl:latest # Lightweight image with curl + command: + - /bin/sh + - -c + - | + echo "Waiting for query service readiness at /api/v1/readiness..." + for i in $(seq 1 60); do + if curl -sf http://{{ include "parseable.fullname" . }}-querier-service.{{ .Release.Namespace }}/api/v1/readiness; then + echo "Query service is ready!" + exit 0 + fi + echo "Query service is not ready yet. Retrying in 2 seconds..." + sleep 2 + done + echo "Query service did not become ready in time. Exiting." + exit 1 terminationGracePeriodSeconds: 10 serviceAccountName: {{ include "parseable.serviceAccountName" . }} containers: diff --git a/helm/templates/querier-statefulset.yaml b/helm/templates/querier-statefulset.yaml index 2694eb75f..5f4664d94 100644 --- a/helm/templates/querier-statefulset.yaml +++ b/helm/templates/querier-statefulset.yaml @@ -19,6 +19,8 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "parseable.querierLabels" . | nindent 4 }} + annotations: + "helm.sh/hook-weight": "1" spec: selector: matchLabels: diff --git a/helm/values.yaml b/helm/values.yaml index 1f8c2f5cf..0f0a61b33 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,11 +4,11 @@ parseable: tag: v1.6.3 pullPolicy: Always ## object store can be local-store, s3-store, blob-store or gcs-store. - store: local-store + store: gcs-store ## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors) ## Please note that highAvailability is not supported in local mode highAvailability: - enabled: false + enabled: true ingestor: port: 8000 podAnnotations: {} @@ -52,8 +52,8 @@ parseable: ## Note that Data directory is needed only for local mode persistence: staging: - enabled: false - storageClass: "" + enabled: true + storageClass: "do-block-storage" accessMode: ReadWriteOnce size: 1Gi ingestor: @@ -67,8 +67,8 @@ parseable: accessMode: ReadWriteOnce size: 1Gi querier: - enabled: false - storageClass: "" + enabled: true + storageClass: "do-block-storage" accessMode: ReadWriteOnce size: 1Gi ## comment out the secrets depending upon deployment option @@ -116,7 +116,7 @@ parseable: - s3.bucket - s3.region gcsModeSecret: - enabled: false + enabled: true secrets: - name: parseable-env-secret prefix: P_ From 94ef0fa004304b9591892d5778a81946513166a8 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Mon, 23 Dec 2024 12:14:52 +0530 Subject: [PATCH 2/3] revert annotation on querier --- helm/templates/querier-statefulset.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/helm/templates/querier-statefulset.yaml b/helm/templates/querier-statefulset.yaml index 5f4664d94..2694eb75f 100644 --- a/helm/templates/querier-statefulset.yaml +++ b/helm/templates/querier-statefulset.yaml @@ -19,8 +19,6 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "parseable.querierLabels" . | nindent 4 }} - annotations: - "helm.sh/hook-weight": "1" spec: selector: matchLabels: From 0b9173400dd49479ad0e0bf85a614f40fd30e6b6 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Mon, 23 Dec 2024 12:15:46 +0530 Subject: [PATCH 3/3] default values --- helm/values.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/values.yaml b/helm/values.yaml index 0f0a61b33..1f8c2f5cf 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -4,11 +4,11 @@ parseable: tag: v1.6.3 pullPolicy: Always ## object store can be local-store, s3-store, blob-store or gcs-store. - store: gcs-store + store: local-store ## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors) ## Please note that highAvailability is not supported in local mode highAvailability: - enabled: true + enabled: false ingestor: port: 8000 podAnnotations: {} @@ -52,8 +52,8 @@ parseable: ## Note that Data directory is needed only for local mode persistence: staging: - enabled: true - storageClass: "do-block-storage" + enabled: false + storageClass: "" accessMode: ReadWriteOnce size: 1Gi ingestor: @@ -67,8 +67,8 @@ parseable: accessMode: ReadWriteOnce size: 1Gi querier: - enabled: true - storageClass: "do-block-storage" + enabled: false + storageClass: "" accessMode: ReadWriteOnce size: 1Gi ## comment out the secrets depending upon deployment option @@ -116,7 +116,7 @@ parseable: - s3.bucket - s3.region gcsModeSecret: - enabled: true + enabled: false secrets: - name: parseable-env-secret prefix: P_