Add helm chart
This commit is contained in:
parent
ce9158eb07
commit
b9c35fb62f
19 changed files with 656 additions and 0 deletions
31
helm/templates/netbox-env.yaml
Normal file
31
helm/templates/netbox-env.yaml
Normal file
|
@ -0,0 +1,31 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ include "netbox.fullname" . }}-env
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "netbox.name" . }}
|
||||
helm.sh/chart: {{ include "netbox.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
data:
|
||||
{{- if .Values.postgresql.host }}
|
||||
DB_HOST: '{{ .Values.postgresql.host }}'
|
||||
{{- else }}
|
||||
DB_HOST: '{{ .Release.Name }}-postgresql'
|
||||
{{- end }}
|
||||
{{- if .Values.redis.host }}
|
||||
REDIS_HOST: '{{ .Values.redis.host }}'
|
||||
{{- else }}
|
||||
REDIS_HOST: '{{ include "redis.child.fullname" . | trim }}-master'
|
||||
{{- end }}
|
||||
DB_NAME: '{{ .Values.postgresql.postgresqlDatabase }}'
|
||||
ALLOWED_HOSTS: '{{ .Values.allowedHosts }}'
|
||||
EMAIL_FROM: '{{ .Values.emailFrom }}'
|
||||
EMAIL_PORT: '{{ .Values.emailPort }}'
|
||||
EMAIL_SERVER: '{{ .Values.emailServer }}'
|
||||
EMAIL_TIMEOUT: '{{ .Values.emailTimeout }}'
|
||||
SUPERUSER_NAME: '{{ .Values.superuser.name }}'
|
||||
SUPERUSER_EMAIL: '{{ .Values.superuser.email }}'
|
||||
{{- range $key, $value := .Values.extraEnvs }}
|
||||
{{ $key }}: '{{ $value }}'
|
||||
{{- end }}
|
Loading…
Add table
Add a link
Reference in a new issue