Skip to content

Commit

Permalink
helm fixes for distributed mode (#1031)
Browse files Browse the repository at this point in the history
* fixes for distributed mode
* add placeholder for fluent bit values
  • Loading branch information
AdheipSingh authored Dec 14, 2024
1 parent 6d3632a commit 80a3ff4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
10 changes: 8 additions & 2 deletions helm/templates/ingestor-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ spec:
apiVersion: v1
fieldPath: metadata.name
{{- end }}
{{- range $secret := .Values.parseable.s3ModeSecret }}

{{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }}
{{- range $secret := .Values.parseable.s3ModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -65,7 +67,10 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- range $secret := .Values.parseable.blobModeSecret }}
{{- end }}

{{- if and .Values.parseable.blobModeSecret .Values.parseable.blobModeSecret.enabled }}
{{- range $secret := .Values.parseable.blobModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -76,6 +81,7 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- end }}
- name: P_MODE
value: "ingest"
ports:
Expand Down
16 changes: 9 additions & 7 deletions helm/templates/querier-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: P_MODE
value: "query"
{{- range $key, $value := .Values.parseable.env }}
- name: {{ $key }}
value: {{ tpl $value $ | quote }}
{{- end }}
{{- range $secret := .Values.parseable.s3ModeSecret }}

{{- if and .Values.parseable.s3ModeSecret .Values.parseable.s3ModeSecret.enabled }}
{{- range $secret := .Values.parseable.s3ModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -67,13 +71,10 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
- name: P_MODE
value: "query"
{{- if .Values.parseable.persistence.querier.enabled }}
- name: P_HOT_TIER_DIR
value: "/parseable/hot-tier"
{{- end }}
{{- range $secret := .Values.parseable.blobModeSecret }}

{{- if and .Values.parseable.blobModeSecret .Values.parseable.blobModeSecret.enabled }}
{{- range $secret := .Values.parseable.blobModeSecret.secrets }}
{{- range $key := $secret.keys }}
{{- $envPrefix := $secret.prefix | default "" | upper }}
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }}
Expand All @@ -84,6 +85,7 @@ spec:
key: {{ $key }}
{{- end }}
{{- end }}
{{- end }}
ports:
- containerPort: 8000
{{- with .Values.readinessProbe }}
Expand Down
5 changes: 3 additions & 2 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ vector:
fluent-bit:
enabled: true
kind: DaemonSet
serverHost: parseable.parseable.svc.cluster.local
replicaCount: 1
image:
repository: parseable/fluent-bit
Expand Down Expand Up @@ -382,7 +383,7 @@ fluent-bit:
[OUTPUT]
Name parseable
Match kube.*
Server_Host parseable.parseable.svc.cluster.local
Server_Host {{ .Values.serverHost }}
Username admin
Password admin
Server_Port 80
Expand All @@ -392,7 +393,7 @@ fluent-bit:
[OUTPUT]
Name parseable
Match k8s_events
Server_Host parseable.parseable.svc.cluster.local
Server_Host {{ .Values.serverHost }}
Server_Port 80
Username admin
Password admin
Expand Down

0 comments on commit 80a3ff4

Please sign in to comment.