2022-12-22 12:29:31 +00:00
|
|
|
{{- if eq .Values.ONLYOFFICE_ENABLED "yes" }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2024-12-16 10:40:10 +00:00
|
|
|
kompose.version: 1.35.0 (9532ceef3)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-onlyoffice
|
|
|
|
|
name: nextcloud-aio-onlyoffice
|
2024-02-28 18:30:56 +00:00
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
2022-12-22 12:29:31 +00:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-onlyoffice
|
2024-03-08 09:34:27 +00:00
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
2022-12-22 12:29:31 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2024-12-16 10:40:10 +00:00
|
|
|
kompose.version: 1.35.0 (9532ceef3)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-onlyoffice
|
|
|
|
|
spec:
|
2023-02-01 16:00:52 +01:00
|
|
|
initContainers:
|
|
|
|
|
- name: init-volumes
|
2024-11-08 10:17:30 +01:00
|
|
|
image: "alpine:3.20"
|
2023-02-01 16:00:52 +01:00
|
|
|
command:
|
|
|
|
|
- chmod
|
2023-02-01 18:51:40 +01:00
|
|
|
- "777"
|
2023-02-01 16:00:52 +01:00
|
|
|
- /nextcloud-aio-onlyoffice
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- name: nextcloud-aio-onlyoffice
|
|
|
|
|
mountPath: /nextcloud-aio-onlyoffice
|
2022-12-22 12:29:31 +00:00
|
|
|
containers:
|
|
|
|
|
- env:
|
|
|
|
|
- name: JWT_ENABLED
|
|
|
|
|
value: "true"
|
|
|
|
|
- name: JWT_HEADER
|
|
|
|
|
value: AuthorizationJwt
|
|
|
|
|
- name: JWT_SECRET
|
|
|
|
|
value: "{{ .Values.ONLYOFFICE_SECRET }}"
|
|
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2024-12-16 10:40:10 +00:00
|
|
|
image: nextcloud/aio-onlyoffice:20241216_102930
|
|
|
|
|
readinessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
initialDelaySeconds: 360
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
initialDelaySeconds: 360
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-onlyoffice
|
2023-02-02 15:44:37 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 80
|
2023-07-20 13:54:51 +00:00
|
|
|
protocol: TCP
|
2022-12-22 12:29:31 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /var/lib/onlyoffice
|
|
|
|
|
name: nextcloud-aio-onlyoffice
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-onlyoffice
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-onlyoffice
|
|
|
|
|
{{- end }}
|