-
Notifications
You must be signed in to change notification settings - Fork 3
/
openshift.yml
89 lines (88 loc) · 2.09 KB
/
openshift.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
apiVersion: v1
kind: Template
metadata:
name: quayio-update-ro-keys-job
parameters:
- name: DB_HOST_SECRET
value: ""
required: true
- name: QUAY_APP_CONFIG_SECRET
value: ""
required: true
- name: KEY_NAME
value: ""
required: false
- name: EXPIRY_DATE
value: ""
required: false
- name: IMAGE
value: "quay.io/app-sre/quayio-update-ro-keys-job"
required: true
- name: IMAGE_TAG
value: "latest"
required: true
- name: ACTIVE_DEADLINE_SECONDS
value: "600"
required: true
- name: JOB_NAME
value: ""
required: true
objects:
- apiVersion: batch/v1
kind: Job
metadata:
name: quayio-update-ro-keys-${JOB_NAME}
spec:
template:
metadata:
labels:
app: quayio-update-ro-keys-${JOB_NAME}
spec:
activeDeadlineSeconds: ${{ACTIVE_DEADLINE_SECONDS}}
backoffLimit: 6
completions: 1
parallelism: 1
restartPolicy: Never
volumes:
- name: configvolume
secret:
secretName: ${{QUAY_APP_CONFIG_SECRET}}
containers:
- name: quayio-update-ro-keys-${JOB_NAME}
image: ${IMAGE}:${IMAGE_TAG}
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
env:
- name: DB_HOST
valueFrom:
secretKeyRef:
name: ${{DB_HOST_SECRET}}
key: db.host
- name: DB_USER
valueFrom:
secretKeyRef:
name: ${{DB_HOST_SECRET}}
key: db.user
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: ${{DB_HOST_SECRET}}
key: db.password
- name: DB_NAME
valueFrom:
secretKeyRef:
name: ${{DB_HOST_SECRET}}
key: db.name
- name: KEY_NAME
value: ${KEY_NAME}
- name: EXPIRY_DATE
value: ${EXPIRY_DATE}
volumeMounts:
- name: configvolume
mountPath: /conf/stack