Skip to content

Commit 047c0fb

Browse files
committed
Adding data-warehouse configuration options to the datanode statefulset and graylog secret
1 parent eee87c3 commit 047c0fb

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

graylog/templates/config/datanode.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ data:
88
GRAYLOG_JAVA_OPTS: {{ .Values.datanode.config.javaOpts | quote }}
99
GRAYLOG_SKIP_PREFLIGHT_CHECKS: {{ .Values.datanode.config.skipPreflightChecks | quote }}
1010
GRAYLOG_NODE_SEARCH_CACHE_SIZE: {{ .Values.datanode.config.nodeSearchCacheSize | quote }}
11+
GRAYLOG_S3_CLIENT_DEFAULT_ENDPOINT: {{ .Values.datanode.config.s3ClientDefaultEndpoint | quote }}
12+
GRAYLOG_S3_CLIENT_DEFAULT_REGION: {{ .Values.datanode.config.s3ClientDefaultRegion | quote }}
13+
GRAYLOG_S3_CLIENT_DEFAULT_PROTOCOL: {{ .Values.datanode.config.s3ClientDefaultProtocol | quote }}
14+
GRAYLOG_S3_CLIENT_DEFAULT_PATH_STYLE_ACCESS: {{ .Values.datanode.config.s3ClientDefaultPathStyleAccess | quote }}

graylog/templates/config/secret/secrets.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ data:
8888
GRAYLOG_ROOT_USERNAME: {{ .Values.graylog.config.rootUsername | default "admin" | b64enc }}
8989
GRAYLOG_PASSWORD_SECRET: {{ $graylogPepper }}
9090
GRAYLOG_ROOT_PASSWORD_SHA2: {{ $graylogSha }}
91+
GRAYLOG_S3_CLIENT_DEFAULT_SECRET_KEY: {{ .Values.datanode.config.s3ClientDefaultSecretKey | quote }}
92+
GRAYLOG_S3_CLIENT_DEFAULT_ACCESS_KEY: {{ .Values.datanode.config.s3ClientDefaultAccessKey | quote }}
9193
---
9294
apiVersion: batch/v1
9395
kind: Job

graylog/templates/workload/statefulsets/datanode.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ spec:
7777
secretKeyRef:
7878
name: {{ include "graylog.secretsName" . }}
7979
key: GRAYLOG_MONGODB_URI
80+
- name: GRAYLOG_S3_CLIENT_DEFAULT_SECRET_KEY
81+
valueFrom:
82+
secretKeyRef:
83+
name: {{ include "graylog.secretsName" . }}
84+
key: GRAYLOG_S3_CLIENT_DEFAULT_SECRET_KEY
85+
- name: GRAYLOG_S3_CLIENT_DEFAULT_ACCESS_KEY
86+
valueFrom:
87+
secretKeyRef:
88+
name: {{ include "graylog.secretsName" . }}
89+
key: GRAYLOG_S3_CLIENT_DEFAULT_ACCESS_KEY
8090
ports:
8191
- name: api
8292
containerPort: {{ .Values.datanode.custom.service.ports.api | default 8999 | int }}

graylog/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ datanode:
153153
javaOpts: "-Xms1g -Xmx1g"
154154
skipPreflightChecks: "false"
155155
nodeSearchCacheSize: "10gb"
156+
s3ClientDefaultSecretKey: ""
157+
s3ClientDefaultAccessKey: ""
158+
s3ClientDefaultEndpoint: ""
159+
s3ClientDefaultRegion: "us-east-2"
160+
s3ClientDefaultProtocol: "http"
161+
s3ClientDefaultPathStyleAccess: "true"
162+
156163
# Custom Kubernetes-specific parameters
157164
custom:
158165
podAnnotations: {}

0 commit comments

Comments
 (0)