mirror of
https://github.com/truenas/charts.git
synced 2026-11-23 15:17:09 +00:00
51 lines
2.6 KiB
YAML
51 lines
2.6 KiB
YAML
apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }}
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
labels: {{ include "common.labels" . | nindent 4 }}
|
|
spec:
|
|
strategy:
|
|
type: {{ .Values.updateStrategy }}
|
|
selector:
|
|
matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}
|
|
labels: {{ include "common.labels.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
{{ include "common.containers.imageConfig" .Values.image | nindent 10 }}
|
|
{{ if .Values.extraAppVolumeMounts }}
|
|
volumeMounts:
|
|
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
|
- name: extrappvolume-{{ $index }}
|
|
mountPath: {{ $hostPathConfiguration.mountPath }}
|
|
{{ end }}
|
|
{{ end }}
|
|
ports:
|
|
- name: collabora
|
|
protocol: TCP
|
|
containerPort: 9980
|
|
{{ $envList := (default list .Values.environmentVariables) }}
|
|
{{ $secretName := (include "secretName" .) }}
|
|
{{ $envConfig := .Values.config }}
|
|
{{ $envList = mustAppend $envList (dict "name" "timezone" "value" $envConfig.timezone) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "domain" "value" $envConfig.domain) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "dictionaries" "value" $envConfig.dictionaries) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "cert_domain" "value" "192.168.0.3") }}
|
|
{{ $envList = mustAppend $envList (dict "name" "extra_params" "value" $envConfig.extra_params) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "DONT_GEN_SSL_CERT" "value" $envConfig.DONT_GEN_SSL_CERT) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "server_name" "value" $envConfig.server_name) }}
|
|
{{ $envList = mustAppend $envList (dict "name" "username" "valueFromSecret" true "secretName" $secretName "secretKey" "username") }}
|
|
{{ $envList = mustAppend $envList (dict "name" "password" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }}
|
|
{{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }}
|
|
{{ if .Values.extraAppVolumeMounts }}
|
|
volumes:
|
|
{{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }}
|
|
- name: extrappvolume-{{ $index }}
|
|
hostPath:
|
|
path: {{ $hostPathConfiguration.hostPath }}
|
|
{{ end }}
|
|
{{ end }}
|