charts/speedtest/templates/configmap.yaml
2019-02-06 22:09:20 -05:00

33 lines
906 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "speedtest.fullname" . }}
labels:
app: {{ template "speedtest.name" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
config.ini: |
[GENERAL]
Delay = {{ .Values.config.delay }}
[INFLUXDB]
Address = {{ .Values.config.influxdb.host }}
Port = {{ .Values.config.influxdb.port }}
Database = {{ .Values.config.influxdb.database }}
Username = {{ .Values.config.influxdb.username }}
Password = {{ .Values.config.influxdb.password }}
{{- if .Values.config.influxdb.ssl }}
Verify_SSL = True
{{- else }}
Verify_SSL = False
{{- end }}
[SPEEDTEST]
Server = {{ .Values.config.speedtest.server }}
[LOGGING]
{{- if .Values.debug }}
Level = debug
{{- else }}
Level = info
{{- end }}