Skip to content

Instantly share code, notes, and snippets.

@ll911
Last active March 1, 2019 17:48
Show Gist options
  • Save ll911/1d678b5dc11a7188c100b43ff9ffba5e to your computer and use it in GitHub Desktop.
Save ll911/1d678b5dc11a7188c100b43ff9ffba5e to your computer and use it in GitHub Desktop.
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: pvc-migrator
name: pvc-migrator
spec:
replicas: 0
selector:
app: pvc-migrator
deploymentconfig: pvc-migrator
template:
metadata:
annotations:
creationTimestamp: null
labels:
app: pvc-migrator
deploymentconfig: pvc-migrator
spec:
containers:
- command:
- tail
- '-f'
- /dev/null
image: >-
docker-registry.default.svc:5000/ll-realm/pvc-migrator
imagePullPolicy: IfNotPresent
name: pvc-migrator
volumeMounts:
- mountPath: /src
name: source-data
- mountPath: /target
name: migration-target
volumes:
- name: source-data
persistentVolumeClaim:
claimName: postgresql
- name: migration-target
persistentVolumeClaim:
claimName: postgresql-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment