2022-12-22 12:29:31 +00:00
|
|
|
{{- if eq .Values.IMAGINARY_ENABLED "yes" }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-05-26 12:46:45 +00:00
|
|
|
kompose.version: 1.36.0 (ae2a39403)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-imaginary
|
|
|
|
|
name: nextcloud-aio-imaginary
|
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-imaginary
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-05-26 12:46:45 +00:00
|
|
|
kompose.version: 1.36.0 (ae2a39403)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-imaginary
|
|
|
|
|
spec:
|
2024-11-15 16:52:55 +01:00
|
|
|
securityContext:
|
|
|
|
|
# The items below only work in pod context
|
|
|
|
|
fsGroup: 65534
|
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
# The items below work in both contexts
|
|
|
|
|
runAsUser: 65534
|
|
|
|
|
runAsGroup: 65534
|
|
|
|
|
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:
|
2024-03-21 08:09:35 +00:00
|
|
|
- name: IMAGINARY_SECRET
|
|
|
|
|
value: "{{ .Values.IMAGINARY_SECRET }}"
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2025-08-11 12:01:50 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-imaginary:20250811_115851
|
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
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-imaginary
|
2023-02-02 15:44:37 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 9000
|
2023-07-20 13:54:51 +00:00
|
|
|
protocol: TCP
|
2023-03-22 12:37:19 +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
|
2023-03-22 12:37:19 +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 }}
|
2022-12-22 12:29:31 +00:00
|
|
|
{{- end }}
|