fixing volumes

This commit is contained in:
2024-07-24 01:51:21 +10:00
parent ac182ec587
commit 9940b792e6

View File

@@ -19,9 +19,12 @@ spec:
runAsGroup: 1000 runAsGroup: 1000
containers: containers:
- name: nextcloud - name: nextcloud
image: nextcloud/all-in-one image: nextcloud/all-in-one:latest
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
env:
- name: SKIP_DOMAIN_VALIDATION
value: "true"
ports: ports:
- protocol: TCP - protocol: TCP
containerPort: 80 containerPort: 80
@@ -41,15 +44,29 @@ spec:
volumeMounts: volumeMounts:
- name: nextcloud_aio_mastercontainer - name: nextcloud_aio_mastercontainer
mountPath: /mnt/docker-aio-config mountPath: /mnt/docker-aio-config
- name: nextcloud_aio_nextcloud
mountPath: /mnt/ncdata
- name: nextcloud_storagebox
mountPath: /mnt/storagebox
- name: docker-socket - name: docker-socket
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
readOnly: true readOnly: true
volumes: volumes:
- name: nextcloud_aio_mastercontainer - name: nextcloud_aio_mastercontainer
hostPath: hostPath:
path: /mnt/nfs/AppData/nextcloud path: /mnt/nfs/AppData/nextcloud/config
type: Directory
- name: nextcloud_aio_nextcloud
hostPath:
path: /mnt/nfs/AppData/nextcloud/data
type: Directory
- name: nextcloud_storagebox
hostPath:
path: /mnt/nfs/AppData/nextcloud/storagebox
type: Directory type: Directory
- name: docker-socket - name: docker-socket
hostPath: hostPath:
path: /var/run/docker.sock path: /var/run/docker.sock
type: Socket type: Socket
nodeSelector:
kubernetes.io/arch: amd64