mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-29 18:20:49 +08:00
e41d8b824c
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
76 lines
2.5 KiB
YAML
Executable file
76 lines
2.5 KiB
YAML
Executable file
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
name: nextcloud-aio-notify-push
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace "{{ .Values.NAMESPACE }}"
|
|
kompose.version: 1.34.0 (cbf2835db)
|
|
labels:
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
spec:
|
|
initContainers:
|
|
- name: init-volumes
|
|
{{- if or .Values.IMAGE_MIRROR_PREFIX .Values.ALPINE_IMAGE_ORG }}
|
|
image: "{{ .Values.IMAGE_MIRROR_PREFIX }}{{ .Values.ALPINE_IMAGE_ORG}}/alpine"
|
|
{{- else }}
|
|
image: alpine
|
|
{{- end }}
|
|
command:
|
|
- chmod
|
|
- "777"
|
|
- /nextcloud-aio-nextcloud
|
|
volumeMounts:
|
|
- name: nextcloud-aio-nextcloud
|
|
mountPath: /nextcloud-aio-nextcloud
|
|
containers:
|
|
- env:
|
|
- name: NC_DOMAIN
|
|
value: "{{ .Values.NC_DOMAIN }}"
|
|
- name: NEXTCLOUD_HOST
|
|
value: nextcloud-aio-nextcloud
|
|
- name: POSTGRES_DB
|
|
value: nextcloud_database
|
|
- name: POSTGRES_HOST
|
|
value: nextcloud-aio-database
|
|
- name: POSTGRES_PASSWORD
|
|
value: "{{ .Values.DATABASE_PASSWORD }}"
|
|
- name: POSTGRES_PORT
|
|
value: "5432"
|
|
- name: POSTGRES_USER
|
|
value: nextcloud
|
|
- name: REDIS_HOST
|
|
value: nextcloud-aio-redis
|
|
- name: REDIS_HOST_PASSWORD
|
|
value: "{{ .Values.REDIS_PASSWORD }}"
|
|
image: "{{ .Values.IMAGE_MIRROR_PREFIX }}{{ .Values.NEXTCLOUD_IMAGE_ORG }}/aio-notify-push:20240606_075829-latest"
|
|
name: nextcloud-aio-notify-push
|
|
ports:
|
|
- containerPort: 7867
|
|
protocol: TCP
|
|
securityContext:
|
|
capabilities:
|
|
drop:
|
|
- NET_RAW
|
|
volumeMounts:
|
|
- mountPath: /nextcloud
|
|
name: nextcloud-aio-nextcloud
|
|
readOnly: true
|
|
volumes:
|
|
- name: nextcloud-aio-nextcloud
|
|
persistentVolumeClaim:
|
|
claimName: nextcloud-aio-nextcloud
|