summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml')
-rw-r--r--roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml b/roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml
new file mode 100644
index 000000000..7fd4fc2e1
--- /dev/null
+++ b/roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml
@@ -0,0 +1,35 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: cloudforms-restore
+spec:
+ template:
+ metadata:
+ name: cloudforms-restore
+ spec:
+ containers:
+ - name: postgresql
+ image: registry.access.redhat.com/cloudforms46-beta/cfme-openshift-postgresql:latest
+ command:
+ - "/opt/rh/cfme-container-scripts/restore_db"
+ env:
+ - name: DATABASE_URL
+ valueFrom:
+ secretKeyRef:
+ name: cloudforms-secrets
+ key: database-url
+ - name: BACKUP_VERSION
+ value: latest
+ volumeMounts:
+ - name: cfme-backup-vol
+ mountPath: "/backups"
+ - name: cfme-prod-vol
+ mountPath: "/restore"
+ volumes:
+ - name: cfme-backup-vol
+ persistentVolumeClaim:
+ claimName: cloudforms-backup
+ - name: cfme-prod-vol
+ persistentVolumeClaim:
+ claimName: cloudforms-postgresql
+ restartPolicy: Never