2023-06-26 10:27:30 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2023-06-26 10:27:30 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
|
|
|
name: nextcloud-aio-notify-push
|
2024-02-28 18:30:56 +00:00
|
|
|
namespace: "{{ .Values.NAMESPACE }}"
|
2023-06-26 10:27:30 +00:00
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
2024-03-08 09:34:27 +00:00
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
2023-06-26 10:27:30 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2023-06-26 10:27:30 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-notify-push
|
|
|
|
|
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
|
2024-11-26 11:14:52 +01:00
|
|
|
{{- if eq (.Values.RPSS_ENABLED | default "no") "yes" }}
|
2024-11-15 16:52:55 +01:00
|
|
|
seccompProfile:
|
|
|
|
|
type: RuntimeDefault
|
|
|
|
|
{{- end }}
|
2023-06-26 10:27:30 +00:00
|
|
|
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 }}"
|
2024-06-06 08:00:47 +00:00
|
|
|
- name: POSTGRES_PORT
|
|
|
|
|
value: "5432"
|
2023-06-26 10:27:30 +00:00
|
|
|
- name: POSTGRES_USER
|
|
|
|
|
value: nextcloud
|
|
|
|
|
- name: REDIS_HOST
|
|
|
|
|
value: nextcloud-aio-redis
|
|
|
|
|
- name: REDIS_HOST_PASSWORD
|
|
|
|
|
value: "{{ .Values.REDIS_PASSWORD }}"
|
2025-12-11 15:56:27 +01:00
|
|
|
- name: REDIS_PORT
|
|
|
|
|
value: "6379"
|
2025-02-25 12:59:30 +00:00
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2025-12-10 13:39:37 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-notify-push:20251210_133359
|
2024-12-16 10:40:10 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- /healthcheck.sh
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
2023-06-26 10:27:30 +00:00
|
|
|
name: nextcloud-aio-notify-push
|
|
|
|
|
ports:
|
|
|
|
|
- containerPort: 7867
|
2023-07-20 13:54:51 +00:00
|
|
|
protocol: TCP
|
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-26 11:14:52 +01:00
|
|
|
{{- if eq (.Values.RPSS_ENABLED | default "no") "yes" }}
|
2024-11-15 16:52:55 +01:00
|
|
|
drop: ["ALL"]
|
|
|
|
|
{{- else }}
|
|
|
|
|
drop: ["NET_RAW"]
|
|
|
|
|
{{- end }}
|
2023-06-26 10:27:30 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /nextcloud
|
|
|
|
|
name: nextcloud-aio-nextcloud
|
|
|
|
|
readOnly: true
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-nextcloud
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-nextcloud
|