2022-12-22 20:29:31 +08:00
|
|
|
{{- if eq .Values.CLAMAV_ENABLED "yes" }}
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.service: nextcloud-aio-clamav
|
|
|
|
name: nextcloud-aio-clamav
|
2023-08-10 06:46:40 +08:00
|
|
|
namespace: {{ .Values.NAMESPACE }}
|
2022-12-22 20:29:31 +08:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
io.kompose.service: nextcloud-aio-clamav
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
2023-08-10 06:46:40 +08:00
|
|
|
kompose.cmd: kompose convert -c -f latest.yml --namespace {{ .Values.NAMESPACE }}
|
2023-07-20 21:54:51 +08:00
|
|
|
kompose.version: 1.30.0 (9d8dcb518)
|
2022-12-22 20:29:31 +08:00
|
|
|
labels:
|
|
|
|
io.kompose.network/nextcloud-aio: "true"
|
|
|
|
io.kompose.service: nextcloud-aio-clamav
|
|
|
|
spec:
|
2023-02-01 23:00:52 +08:00
|
|
|
initContainers:
|
|
|
|
- name: init-volumes
|
|
|
|
image: alpine
|
|
|
|
command:
|
|
|
|
- chmod
|
2023-02-02 01:51:40 +08:00
|
|
|
- "777"
|
2023-02-01 23:00:52 +08:00
|
|
|
- /nextcloud-aio-clamav
|
2023-06-26 18:27:30 +08:00
|
|
|
- /nextcloud-aio-clamav-tmpfs0
|
|
|
|
- /nextcloud-aio-clamav-tmpfs1
|
|
|
|
- /nextcloud-aio-clamav-tmpfs2
|
2023-02-01 23:00:52 +08:00
|
|
|
volumeMounts:
|
2023-06-26 18:27:30 +08:00
|
|
|
- name: nextcloud-aio-clamav-tmpfs2
|
|
|
|
mountPath: /nextcloud-aio-clamav-tmpfs2
|
|
|
|
- name: nextcloud-aio-clamav-tmpfs1
|
|
|
|
mountPath: /nextcloud-aio-clamav-tmpfs1
|
|
|
|
- name: nextcloud-aio-clamav-tmpfs0
|
|
|
|
mountPath: /nextcloud-aio-clamav-tmpfs0
|
2023-02-01 23:00:52 +08:00
|
|
|
- name: nextcloud-aio-clamav
|
|
|
|
mountPath: /nextcloud-aio-clamav
|
2022-12-22 20:29:31 +08:00
|
|
|
containers:
|
|
|
|
- env:
|
|
|
|
- name: CLAMD_STARTUP_TIMEOUT
|
|
|
|
value: "90"
|
|
|
|
- name: TZ
|
|
|
|
value: "{{ .Values.TIMEZONE }}"
|
2023-08-17 15:22:48 +08:00
|
|
|
image: nextcloud/aio-clamav:20230817_065941-latest
|
2022-12-22 20:29:31 +08:00
|
|
|
name: nextcloud-aio-clamav
|
2023-02-02 22:44:37 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 3310
|
2023-07-20 21:54:51 +08:00
|
|
|
hostPort: 3310
|
|
|
|
protocol: TCP
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: true
|
2022-12-22 20:29:31 +08:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /var/lib/clamav
|
|
|
|
name: nextcloud-aio-clamav
|
2023-06-26 18:27:30 +08:00
|
|
|
- mountPath: /var/lock
|
|
|
|
name: nextcloud-aio-clamav-tmpfs0
|
|
|
|
- mountPath: /var/log/clamav
|
|
|
|
name: nextcloud-aio-clamav-tmpfs1
|
|
|
|
- mountPath: /tmp
|
|
|
|
name: nextcloud-aio-clamav-tmpfs2
|
2022-12-22 20:29:31 +08:00
|
|
|
volumes:
|
|
|
|
- name: nextcloud-aio-clamav
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: nextcloud-aio-clamav
|
2023-06-26 18:27:30 +08:00
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-clamav-tmpfs0
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-clamav-tmpfs1
|
|
|
|
- emptyDir: {}
|
|
|
|
name: nextcloud-aio-clamav-tmpfs2
|
2022-12-22 20:29:31 +08:00
|
|
|
{{- end }}
|