2022-12-22 12:29:31 +00:00
|
|
|
{{- if eq .Values.CLAMAV_ENABLED "yes" }}
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-clamav
|
|
|
|
|
name: nextcloud-aio-clamav
|
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-clamav
|
2024-03-08 09:34:27 +00:00
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
2022-12-22 12:29:31 +00:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
annotations:
|
2025-08-22 11:32:53 +00:00
|
|
|
kompose.version: 1.37.0 (fb0539e64)
|
2022-12-22 12:29:31 +00:00
|
|
|
labels:
|
|
|
|
|
io.kompose.service: nextcloud-aio-clamav
|
|
|
|
|
spec:
|
2024-11-15 16:52:55 +01:00
|
|
|
securityContext:
|
|
|
|
|
# The items below only work in pod context
|
|
|
|
|
fsGroup: 100
|
|
|
|
|
fsGroupChangePolicy: "OnRootMismatch"
|
|
|
|
|
# The items below work in both contexts
|
|
|
|
|
runAsUser: 100
|
|
|
|
|
runAsGroup: 100
|
|
|
|
|
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-02-01 16:00:52 +01:00
|
|
|
initContainers:
|
2023-11-21 12:00:51 +01:00
|
|
|
- name: init-subpath
|
2025-12-10 13:39:37 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-alpine:20251210_133359
|
2023-11-21 12:00:51 +01:00
|
|
|
command:
|
|
|
|
|
- mkdir
|
|
|
|
|
- "-p"
|
|
|
|
|
- /nextcloud-aio-clamav/data
|
2023-02-01 16:00:52 +01:00
|
|
|
volumeMounts:
|
|
|
|
|
- name: nextcloud-aio-clamav
|
|
|
|
|
mountPath: /nextcloud-aio-clamav
|
2024-11-15 16:52:55 +01:00
|
|
|
securityContext:
|
|
|
|
|
# The items below only work in container context
|
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
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
|
|
|
containers:
|
|
|
|
|
- env:
|
2024-07-18 06:40:09 +00:00
|
|
|
- name: MAX_SIZE
|
|
|
|
|
value: "{{ .Values.NEXTCLOUD_UPLOAD_LIMIT }}"
|
2022-12-22 12:29:31 +00:00
|
|
|
- name: TZ
|
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2025-12-10 13:39:37 +00:00
|
|
|
image: ghcr.io/nextcloud-releases/aio-clamav:20251210_133359
|
2024-12-16 10:40:10 +00:00
|
|
|
readinessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
2025-03-25 09:46:29 +00:00
|
|
|
- /healthcheck.sh
|
2024-12-16 13:45:22 +01:00
|
|
|
failureThreshold: 9
|
|
|
|
|
initialDelaySeconds: 60
|
2024-12-16 10:40:10 +00:00
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
2025-03-25 09:46:29 +00:00
|
|
|
- /healthcheck.sh
|
2024-12-16 13:45:22 +01:00
|
|
|
failureThreshold: 9
|
|
|
|
|
initialDelaySeconds: 60
|
2024-12-16 10:40:10 +00:00
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 30
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-clamav
|
2023-02-02 15:44:37 +01:00
|
|
|
ports:
|
|
|
|
|
- containerPort: 3310
|
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 }}
|
2022-12-22 12:29:31 +00:00
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /var/lib/clamav
|
2023-11-21 12:00:51 +01:00
|
|
|
subPath: data
|
2022-12-22 12:29:31 +00:00
|
|
|
name: nextcloud-aio-clamav
|
|
|
|
|
volumes:
|
|
|
|
|
- name: nextcloud-aio-clamav
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: nextcloud-aio-clamav
|
|
|
|
|
{{- end }}
|