'add-seafile'
This commit is contained in:
46
seafile/templates/onlyoffice/deployment.yaml
Normal file
46
seafile/templates/onlyoffice/deployment.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
{{- 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 -}}
|
||||
Reference in New Issue
Block a user