2023-06-26 18:27:30 +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)
|
2023-06-26 18:27:30 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
|
|
name: nextcloud-aio-notify-push
|
2024-02-29 02:30:56 +08:00
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
2023-06-26 18:27:30 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
2024-03-08 17:34:27 +08:00
|
|
|
strategy:
|
|
|
|
type: Recreate
|
2023-06-26 18:27:30 +08:00
|
|
|
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)
|
2023-06-26 18:27:30 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.network/nextcloud-aio: "true"
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
|
|
spec:
|
|
|
|
initContainers:
|
|
|
|
- name: init-volumes
|
2024-03-21 16:09:35 +08:00
|
|
|
{{- if or .Values.IMAGE_MIRROR_PREFIX .Values.ALPINE_IMAGE_ORG }}
|
|
|
|
image: "{{ .Values.IMAGE_MIRROR_PREFIX }}{{ .Values.ALPINE_IMAGE_ORG}}/alpine"
|
|
|
|
{{- else }}
|
2023-06-26 18:27:30 +08:00
|
|
|
image: alpine
|
2024-03-21 16:09:35 +08:00
|
|
|
{{- end }}
|
2023-06-26 18:27:30 +08:00
|
|
|
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_USER
|
|
|
|
value: nextcloud
|
|
|
|
- name: REDIS_HOST
|
|
|
|
value: nextcloud-aio-redis
|
|
|
|
- name: REDIS_HOST_PASSWORD
|
|
|
|
value: "{{ .Values.REDIS_PASSWORD }}"
|
2024-03-21 16:09:35 +08:00
|
|
|
image: "{{ .Values.IMAGE_MIRROR_PREFIX }}{{ .Values.NEXTCLOUD_IMAGE_ORG }}"/aio-notify-push:20240321_080708-latest
|
2023-06-26 18:27:30 +08:00
|
|
|
name: nextcloud-aio-notify-push
|
|
|
|
ports:
|
|
|
|
- containerPort: 7867
|
2023-07-20 21:54:51 +08:00
|
|
|
protocol: TCP
|
2024-03-08 17:34:27 +08:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
- NET_RAW
|
2023-06-26 18:27:30 +08:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /nextcloud
|
|
|
|
name: nextcloud-aio-nextcloud
|
|
|
|
readOnly: true
|
|
|
|
volumes:
|
|
|
|
- name: nextcloud-aio-nextcloud
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: nextcloud-aio-nextcloud
|