2022-12-22 12:29:31 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2024-02-28 18:30:56 +00:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
2024-06-06 08:00:47 +00:00
|
|
|
kompose.version: 1.34.0 (cbf2835db)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-apache
|
|
|
|
|
name: nextcloud-aio-apache
|
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-apache
|
2024-03-08 09:34:27 +00:00
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
2022-12-22 12:29:31 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2024-02-28 18:30:56 +00:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
2024-06-06 08:00:47 +00:00
|
|
|
kompose.version: 1.34.0 (cbf2835db)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-apache
|
|
|
|
|
spec:
|
2024-11-15 16:52:55 +01:00
|
|
|
securityContext:
|
|
|
|
|
# The items below only work in pod context
|
|
|
|
|
fsGroup: 33
|
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
# The items below work in both contexts
|
|
|
|
|
runAsUser: 33
|
|
|
|
|
runAsGroup: 33
|
|
|
|
|
runAsNonRoot: true
|
|
|
|
|
{{- if eq .Values.RPSS_ENABLED "yes" }}
|
|
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
|
|
|
|
{{- end }}
|
2022-12-22 12:29:31 +00:00
|
|
|
containers:
|
|
|
|
|
- env:
|
2024-02-01 13:25:22 +01:00
|
|
|
- name: ADDITIONAL_TRUSTED_DOMAIN
|
|
|
|
|
value: "{{ .Values.ADDITIONAL_TRUSTED_DOMAIN }}"
|
2024-06-17 09:00:50 +00:00
|
|
|
- name: APACHE_HOST
|
|
|
|
|
value: nextcloud-aio-apache
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: APACHE_MAX_SIZE
|
|
|
|
|
value: "{{ .Values.APACHE_MAX_SIZE }}"
|
|
|
|
|
- name: APACHE_MAX_TIME
|
|
|
|
|
value: "{{ .Values.NEXTCLOUD_MAX_TIME }}"
|
|
|
|
|
- name: APACHE_PORT
|
|
|
|
|
value: "{{ .Values.APACHE_PORT }}"
|
|
|
|
|
- name: COLLABORA_HOST
|
|
|
|
|
value: nextcloud-aio-collabora
|
|
|
|
|
- name: NC_DOMAIN
|
|
|
|
|
value: "{{ .Values.NC_DOMAIN }}"
|
|
|
|
|
- name: NEXTCLOUD_HOST
|
|
|
|
|
value: nextcloud-aio-nextcloud
|
2023-06-26 10:27:30 +00:00
|
|
|
- name: NOTIFY_PUSH_HOST
|
|
|
|
|
value: nextcloud-aio-notify-push
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: ONLYOFFICE_HOST
|
|
|
|
|
value: nextcloud-aio-onlyoffice
|
|
|
|
|
- name: TALK_HOST
|
|
|
|
|
value: nextcloud-aio-talk
|
|
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2024-09-25 08:14:31 +00:00
|
|
|
- name: WHITEBOARD_HOST
|
|
|
|
|
value: nextcloud-aio-whiteboard
|
2024-11-26 09:42:56 +00:00
|
|
|
image: nextcloud/aio-apache:20241125_091756
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-apache
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: {{ .Values.APACHE_PORT }}
|
2023-07-20 13:54:51 +00:00
|
|
|
protocol: TCP
|
|
|
|
|
- containerPort: {{ .Values.APACHE_PORT }}
|
|
|
|
|
protocol: UDP
|
2024-03-08 09:34:27 +00:00
|
|
|
securityContext:
|
2024-11-15 16:52:55 +01:00
|
|
|
# The items below only work in container context
|
2024-11-05 16:05:22 +01:00
|
|
|
allowPrivilegeEscalation: false
|
2024-03-08 09:34:27 +00:00
|
|
|
capabilities:
|
2024-11-15 16:52:55 +01:00
|
|
|
{{- if eq .Values.RPSS_ENABLED "yes" }}
|
|
|
|
|
drop: ["ALL"]
|
|
|
|
|
{{- else }}
|
|
|
|
|
drop: ["NET_RAW"]
|
|
|
|
|
{{- end }}
|
|
|
|
|
add: ["NET_BIND_SERVICE"]
|
2022-12-22 12:29:31 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /var/www/html
|
|
|
|
|
name: nextcloud-aio-nextcloud
|
|
|
|
|
readOnly: true
|
|
|
|
|
- mountPath: /mnt/data
|
|
|
|
|
name: nextcloud-aio-apache
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-nextcloud
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-nextcloud
|
|
|
|
|
- name: nextcloud-aio-apache
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-apache
|