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-redis
|
|
|
|
|
name: nextcloud-aio-redis
|
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-redis
|
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-redis
|
|
|
|
|
spec:
|
2024-11-15 16:52:55 +01:00
|
|
|
securityContext:
|
|
|
|
|
# The items below only work in pod context
|
|
|
|
|
fsGroup: 999
|
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
# The items below work in both contexts
|
|
|
|
|
runAsUser: 999
|
|
|
|
|
runAsGroup: 999
|
|
|
|
|
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 }}
|
2022-12-22 12:29:31 +00:00
|
|
|
containers:
|
|
|
|
|
- env:
|
|
|
|
|
- name: REDIS_HOST_PASSWORD
|
|
|
|
|
value: "{{ .Values.REDIS_PASSWORD }}"
|
|
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2024-11-26 09:42:56 +00:00
|
|
|
image: nextcloud/aio-redis:20241125_091756
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-redis
|
2023-02-02 15:44:37 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 6379
|
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 }}
|
|
|
|
|
add: ["NET_BIND_SERVICE"]
|
2022-12-22 12:29:31 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /data
|
|
|
|
|
name: nextcloud-aio-redis
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-redis
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-redis
|