Add user to configuration
Change-Id: I2608a50c095334f8e6e46502bba1f5995c0f7a2a
This commit is contained in:
parent
5c1169c88a
commit
10e4dc57b4
@ -40,6 +40,26 @@ spec:
|
||||
env:
|
||||
- name: INFLUXDB_HTTP_AUTH_ENABLED
|
||||
value: "{{ .Values.config.httpAuthEnabled }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_MODE
|
||||
value: "{{ .Values.influxdbSetup.DOCKER_INFLUXDB_INIT_MODE }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_USERNAME
|
||||
value: "{{ .Values.influxdbSetup.DOCKER_INFLUXDB_INIT_USERNAME }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_ORG
|
||||
value: "{{ .Values.influxdbSetup.DOCKER_INFLUXDB_INIT_ORG }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_BUCKET
|
||||
value: "{{ .Values.influxdbSetup.DOCKER_INFLUXDB_INIT_BUCKET }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_RETENTION
|
||||
value: "{{ .Values.influxdbSetup.DOCKER_INFLUXDB_INIT_RETENTION }}"
|
||||
- name: DOCKER_INFLUXDB_INIT_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "nebulous-influxdb.fullname" . }}-secrets
|
||||
key: DOCKER_INFLUXDB_INIT_PASSWORD
|
||||
- name: DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "nebulous-influxdb.fullname" . }}-secrets
|
||||
key: DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
|
10
charts/nebulous-influxdb/templates/influxdb-secrets.yaml
Normal file
10
charts/nebulous-influxdb/templates/influxdb-secrets.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "nebulous-influxdb.fullname" . }}-secrets
|
||||
labels:
|
||||
{{- include "nebulous-influxdb.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
DOCKER_INFLUXDB_INIT_PASSWORD: {{ .Values.secrets.DOCKER_INFLUXDB_INIT_PASSWORD | b64enc | quote }}
|
||||
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: {{ .Values.secrets.DOCKER_INFLUXDB_INIT_ADMIN_TOKEN | b64enc | quote }}
|
@ -89,3 +89,13 @@ nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
influxdbSetup:
|
||||
DOCKER_INFLUXDB_INIT_MODE: "setup"
|
||||
DOCKER_INFLUXDB_INIT_USERNAME: "my-user"
|
||||
DOCKER_INFLUXDB_INIT_ORG: "my-org"
|
||||
DOCKER_INFLUXDB_INIT_BUCKET: "my-bucket"
|
||||
DOCKER_INFLUXDB_INIT_RETENTION: "1w"
|
||||
|
||||
secrets:
|
||||
DOCKER_INFLUXDB_INIT_PASSWORD: "my-password"
|
||||
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "my-super-secret-auth-token"
|
Loading…
Reference in New Issue
Block a user