12345678910111213141516171819202122232425262728 |
- apiVersion: batch/v1
- kind: Job
- metadata:
- name: cloudforms-backup
- spec:
- template:
- metadata:
- name: cloudforms-backup
- spec:
- containers:
- - name: postgresql
- image: registry.access.redhat.com/cloudforms46/cfme-openshift-postgresql:latest
- command:
- - "/opt/rh/cfme-container-scripts/backup_db"
- env:
- - name: DATABASE_URL
- valueFrom:
- secretKeyRef:
- name: cloudforms-secrets
- key: database-url
- volumeMounts:
- - name: cfme-backup-vol
- mountPath: "/backups"
- volumes:
- - name: cfme-backup-vol
- persistentVolumeClaim:
- claimName: cloudforms-backup
- restartPolicy: Never
|