Created
January 29, 2020 15:06
-
-
Save bastoker/6f4ef07ac9ac91f1de3574e79b9701e4 to your computer and use it in GitHub Desktop.
ReportPortal v5 migration Kubernetes Job
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: rp-data-migration | |
labels: | |
jobgroup: v4v5-migration | |
spec: | |
template: | |
metadata: | |
name: kubejob | |
labels: | |
jobgroup: v4v5-migration | |
spec: | |
restartPolicy: Never | |
containers: | |
- name: rp-data-migration | |
image: pbortnik/data-migration@sha256:73b00d48227fb668ca035dee3a2d8eed67cfec9c65eb6ae90329a10fa25a0466 | |
args: ["100"] | |
env: | |
- name: RP_BINARYSTORE_TYPE | |
value: "minio" | |
- name: RP_BINARYSTORE_MINIO_ENDPOINT | |
value: "http://minio:9000" | |
- name: RP_BINARYSTORE_MINIO_ACCESSKEY | |
value: "xxx" | |
- name: RP_BINARYSTORE_MINIO_SECRETKEY | |
value: "yyy" | |
- name: RP_USER_KEEPFROM | |
value: "2000-01-01" | |
- name: RP_LAUNCH_KEEPATTR | |
value: "forever" | |
- name: RP_MONGODB_DATABASE | |
value: "mongodb" | |
- name: RP_MONGODB_URI | |
value: "mongodb://mongodb:27017/mongodb" | |
- name: RP_LAUNCH_KEEPATTR | |
value: "forever" | |
- name: RP_DB_HOST | |
value: "postgresql" | |
- name: RP_DB_PORT | |
value: "5432" | |
- name: RP_DB_NAME | |
value: "reportportal" | |
- name: RP_DB_PASS | |
valueFrom: | |
secretKeyRef: | |
name: postgresql-postgresql | |
key: postgresql-password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment