apiVersion: apps/v1 kind: Deployment metadata: name: nextcloud namespace: nextcloud spec: replicas: 1 selector: matchLabels: app: nextcloud template: metadata: labels: app: nextcloud spec: containers: - name: nextcloud image: nextcloud:35 resources: requests: memory: 2Gi ports: - containerPort: 80 volumeMounts: - name: data mountPath: /var/www/html/data - name: config mountPath: /var/www/html/config - name: custom-apps mountPath: /var/www/html/custom_apps - name: themes mountPath: /var/www/html/themes volumes: - name: data hostPath: path: /mnt/Cofrin/nextcloud/data type: Directory - name: config hostPath: path: /mnt/Cofrin/nextcloud/config type: Directory - name: custom-apps hostPath: path: /mnt/Cofrin/nextcloud/custom_apps type: Directory - name: themes hostPath: path: /mnt/Cofrin/nextcloud/themes type: Directory