| |
@@ -0,0 +1,86 @@
|
| |
+ kind: CronJob
|
| |
+ apiVersion: batch/v1beta1
|
| |
+ metadata:
|
| |
+ name: syncjob
|
| |
+ namespace: default
|
| |
+ selfLink: /apis/batch/v1/namespaces/default/jobs/syncjob
|
| |
+ spec:
|
| |
+ schedule: '@hourly'
|
| |
+ jobTemplate:
|
| |
+ spec:
|
| |
+ template:
|
| |
+ metadata:
|
| |
+ name: sync
|
| |
+ spec:
|
| |
+ restartPolicy: Never
|
| |
+ serviceAccountName: default
|
| |
+ schedulerName: default-scheduler
|
| |
+ terminationGracePeriodSeconds: 30
|
| |
+ securityContext: {}
|
| |
+ containers:
|
| |
+ - resources: {}
|
| |
+ terminationMessagePath: /dev/termination-log
|
| |
+ name: blockerbugs
|
| |
+ command: ["blockerbugs", "sync"]
|
| |
+ env:
|
| |
+ - name: POSTGRESQL_USER
|
| |
+ valueFrom:
|
| |
+ secretKeyRef:
|
| |
+ name: postgresql
|
| |
+ key: database-user
|
| |
+ - name: POSTGRESQL_PASSWORD
|
| |
+ valueFrom:
|
| |
+ secretKeyRef:
|
| |
+ name: postgresql
|
| |
+ key: database-password
|
| |
+ - name: POSTGRESQL_DATABASE
|
| |
+ valueFrom:
|
| |
+ secretKeyRef:
|
| |
+ name: postgresql
|
| |
+ key: database-name
|
| |
+ - name: OPENSHIFT_PROD
|
| |
+ value: '1'
|
| |
+ - name: FAS_PASSWORD
|
| |
+ value: passw0rd
|
| |
+ - name: FAS_USER
|
| |
+ value: user
|
| |
+ - name: FAS_ADMIN_GROUP
|
| |
+ value: root
|
| |
+ - name: SECRET_KEY
|
| |
+ value: a2b36c3bfc09fc821e1d03d40a9fcd39417c38a3bca027b174a62f6b104046e1
|
| |
+ - name: PAGURE_REPO_TOKEN
|
| |
+ value: GUIJJYD2X4LGVKBSOSIXY1CGTYHG46EBC6NL4ZONEQTYEQBQQMXQZM5HZFZB6LPX
|
| |
+ - name: PAGURE_REPO_WEBHOOK_KEY
|
| |
+ value: DA2ZNFNR6YLRT2725BG4DQNN9DVLE1SRQ0KA1CXB
|
| |
+ - name: PAGURE_BOT_USERNAME
|
| |
+ value: qabot
|
| |
+ - name: PAGURE_URL
|
| |
+ value: 'http://37.205.14.49:5000/'
|
| |
+ - name: PAGURE_API
|
| |
+ value: 'http://37.205.14.49:5000/api/0/'
|
| |
+ ports:
|
| |
+ - containerPort: 5001
|
| |
+ protocol: TCP
|
| |
+ imagePullPolicy: IfNotPresent
|
| |
+ volumeMounts:
|
| |
+ - name: blockerbugs-1
|
| |
+ mountPath: /bbugs
|
| |
+ - name: run-volume
|
| |
+ mountPath: /run
|
| |
+ - name: default-token-tlbvw
|
| |
+ readOnly: true
|
| |
+ mountPath: /var/run/secrets/kubernetes.io/serviceaccount
|
| |
+ terminationMessagePolicy: File
|
| |
+ image: >-
|
| |
+ quay.io/fzatlouk/blockerbugs@sha256:7ea0989cf2d7442ca7be365f0e295ae5f17a75789d3ebcf582c551e5fab0e43a
|
| |
+ serviceAccount: default
|
| |
+ volumes:
|
| |
+ - name: blockerbugs-1
|
| |
+ emptyDir: {}
|
| |
+ - name: run-volume
|
| |
+ emptyDir: {}
|
| |
+ - name: default-token-tlbvw
|
| |
+ secret:
|
| |
+ secretName: default-token-tlbvw
|
| |
+ defaultMode: 420
|
| |
+ dnsPolicy: ClusterFirst
|
| |
\ No newline at end of file
|
| |
Do not merge yet, works, but it should be updated to a more generic template before merging.