apiVersion: apps/v1 kind: Deployment metadata: labels: app: upload-to-nextcloud name: upload-to-nextcloud spec: replicas: 1 selector: matchLabels: app: upload-to-nextcloud template: metadata: labels: app: upload-to-nextcloud spec: containers: - env: - name: amqp valueFrom: secretKeyRef: key: url name: amqp - name: nc_host valueFrom: secretKeyRef: key: host name: nextcloud-client - name: nc_user valueFrom: secretKeyRef: key: username name: nextcloud-client - name: nc_pass valueFrom: secretKeyRef: key: password name: nextcloud-client image: "{{ .Values.image.repository }}:{{ trim .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: "{{ .Values.image.PullPolicy }}" name: upload-to-nextcloud terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /conversion name: pvc-conversion imagePullSecrets: - name: {{ .Values.image.pullSecret }} dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler terminationGracePeriodSeconds: 30 volumes: - name: pvc-conversion persistentVolumeClaim: claimName: pvc-conversion