2022-12-22 20:29:31 +08:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2024-02-29 02:30:56 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
2024-01-24 20:09:20 +08:00
|
|
|
kompose.version: 1.32.0 (765fde254)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-apache
|
|
|
|
name: nextcloud-aio-apache
|
2024-02-29 02:30:56 +08:00
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
2022-12-22 20:29:31 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-apache
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2024-02-29 02:30:56 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
2024-01-24 20:09:20 +08:00
|
|
|
kompose.version: 1.32.0 (765fde254)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.network/nextcloud-aio: "true"
|
|
|
|
io.kompose.service: nextcloud-aio-apache
|
|
|
|
spec:
|
2023-02-01 23:00:52 +08:00
|
|
|
initContainers:
|
|
|
|
- name: init-volumes
|
|
|
|
image: alpine
|
|
|
|
command:
|
|
|
|
- chmod
|
2023-02-02 01:51:40 +08:00
|
|
|
- "777"
|
2023-02-01 23:00:52 +08:00
|
|
|
- /nextcloud-aio-nextcloud
|
|
|
|
- /nextcloud-aio-apache
|
|
|
|
volumeMounts:
|
|
|
|
- name: nextcloud-aio-apache
|
|
|
|
mountPath: /nextcloud-aio-apache
|
|
|
|
- name: nextcloud-aio-nextcloud
|
|
|
|
mountPath: /nextcloud-aio-nextcloud
|
2022-12-22 20:29:31 +08:00
|
|
|
containers:
|
|
|
|
- env:
|
2024-02-01 20:25:22 +08:00
|
|
|
- name: ADDITIONAL_TRUSTED_DOMAIN
|
|
|
|
value: "{{ .Values.ADDITIONAL_TRUSTED_DOMAIN }}"
|
2022-12-22 20:29:31 +08: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 18:27:30 +08:00
|
|
|
- name: NOTIFY_PUSH_HOST
|
|
|
|
value: nextcloud-aio-notify-push
|
2022-12-22 20:29:31 +08:00
|
|
|
- name: ONLYOFFICE_HOST
|
|
|
|
value: nextcloud-aio-onlyoffice
|
|
|
|
- name: TALK_HOST
|
|
|
|
value: nextcloud-aio-talk
|
|
|
|
- name: TZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2024-02-29 02:30:56 +08:00
|
|
|
image: nextcloud/aio-apache:20240228_172209-latest
|
2022-12-22 20:29:31 +08:00
|
|
|
name: nextcloud-aio-apache
|
|
|
|
ports:
|
|
|
|
- containerPort: {{ .Values.APACHE_PORT }}
|
2023-07-20 21:54:51 +08:00
|
|
|
protocol: TCP
|
|
|
|
- containerPort: {{ .Values.APACHE_PORT }}
|
|
|
|
protocol: UDP
|
2022-12-22 20:29:31 +08: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
|