{{- define "onlyoffice.deployment" -}} {{- if .Values.onlyoffice.enabled }} --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: onlyoffice name: onlyoffice spec: selector: matchLabels: app: onlyoffice replicas: 1 strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: labels: app: onlyoffice spec: containers: - name: onlyoffice image: {{ .Values.onlyoffice.image }} imagePullPolicy: IfNotPresent env: - name: JWT_SECRET value: {{ .Values.onlyoffice.token }} - name: JWT_ENABLED value: 'true' - name: USE_UNAUTHORIZED_STORAGE value: 'true' volumeMounts: - mountPath: /etc/postgresql/14/main/conf.d/postgresql.conf name: postgresql-conf subPath: postgresql.conf volumes: - configMap: defaultMode: 420 name: onlyoffice-postgresql name: postgresql-conf {{- end }} {{ end -}}