---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: config-move
spec:
  selector:
    matchLabels:
      app: config-move
  template:
    metadata:
      labels:
        app: config-move
    spec:
      containers:
        - name: move-config
          image: storidge/config
          volumeMounts:
            - name: secret-volume
              mountPath: /secret
            - name: storidge
              mountPath: /storidge
      volumes:
        - name: secret-volume
          secret:
            secretName: storidge-config
        - name: storidge
          hostPath:
            path: /etc/storidge/certs
            type: Directory
