apiVersion: batch/v1beta1
kind: CronJob
metadata:
  name: etcd-backup-hourly
  namespace: openshift-etcd
spec:
  schedule: "0 */1 * * *"
  jobTemplate:
    spec:
      template:
        spec:
          nodeSelector:
            node-role.kubernetes.io/master: "true"
          serviceAccountName: etcd-backup
          restartPolicy: Never
          containers:
          - name: etcd-backup-hourly
            image: '*** GENERATED ***'
            imagePullPolicy: Always
            args:
            - save
            volumeMounts:
            - name: azureconfig
              mountPath: /_data/_out
              readOnly: true
            - name: origin-master
              mountPath: /etc/origin/master
              readOnly: true
          volumes:
          - name: azureconfig
            hostPath:
              path: /etc/origin/cloudprovider
          - name: origin-master
            hostPath:
              path: /etc/origin/master
