-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtemplate.yaml
More file actions
188 lines (177 loc) · 4.85 KB
/
template.yaml
File metadata and controls
188 lines (177 loc) · 4.85 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
apiVersion: v1
kind: Template
labels:
template: f8a-release-monitor
metadata:
name: f8a-release-monitor
annotations:
description: f8a-release-monitor
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
service: f8a-release-monitor
name: f8a-release-monitor
spec:
replicas: ${{REPLICAS}}
selector:
service: f8a-release-monitor
template:
metadata:
labels:
service: f8a-release-monitor
spec:
containers:
- env:
- name: DEPLOYMENT_PREFIX
valueFrom:
configMapKeyRef:
name: bayesian-config
key: deployment-prefix
- name: WORKER_ADMINISTRATION_REGION
value: "api"
- name: AWS_SQS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws
key: sqs-access-key-id
- name: AWS_SQS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws
key: sqs-secret-access-key
- name: AWS_S3_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws
key: s3-access-key-id
- name: AWS_S3_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws
key: s3-secret-access-key
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: worker
key: sentry_dsn
# this won't get used if running with SQS
- name: RABBITMQ_SERVICE_SERVICE_HOST
value: bayesian-broker
- name: PGBOUNCER_SERVICE_HOST
value: bayesian-pgbouncer
- name: POSTGRESQL_DATABASE
valueFrom:
secretKeyRef:
name: coreapi-postgres
key: database
- name: POSTGRESQL_USER
valueFrom:
secretKeyRef:
name: coreapi-postgres
key: username
- name: POSTGRESQL_PASSWORD
valueFrom:
secretKeyRef:
name: coreapi-postgres
key: password
- name: ENABLE_SCHEDULING
value: ${ENABLE_SCHEDULING}
- name: SLEEP_INTERVAL
value: ${SLEEP_INTERVAL}
- name: NPM_URL
value: ${NPM_URL}
- name: PYPI_URL
value: ${PYPI_URL}
- name: DEBUG
value: ${DEBUG}
image: "${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${IMAGE_TAG}"
name: f8a-release-monitor
livenessProbe:
exec:
command:
- "true"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 20
readinessProbe:
exec:
command:
- "true"
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 20
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "250m"
restartPolicy: Always
test: false
triggers:
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
service: f8a-release-monitor
name: f8a-release-monitor
spec:
ports:
- name: "35000"
port: 35000
protocol: TCP
targetPort: 35000
selector:
service: f8a-release-monitor
parameters:
- description: Docker registry where the image is
displayName: Docker registry
required: true
name: DOCKER_REGISTRY
value: "quay.io"
- description: Variable which defines whether new analysis will be scheduled
displayName: Enable scheduling variable
required: true
name: ENABLE_SCHEDULING
value: "0"
- description: Variable which defines time between requests for updates from registries
displayName: Sleep interval
name: SLEEP_INTERVAL
value: "10"
- description: Variable which defines NPM registry url
displayName: NPM registry URL
name: NPM_URL
value: "https://registry.npmjs.org/"
- description: Variable which defines PYPI registry url
displayName: PYPI registry URL
name: PYPI_URL
value: "https://pypi.org/"
- description: Docker image to use
displayName: Docker image
required: true
name: DOCKER_IMAGE
value: "openshiftio/fabric8-analytics-release-monitor"
- description: Image tag
displayName: Image tag
required: true
name: IMAGE_TAG
value: "latest" # image-tag
- description: Number of deployment replicas
displayName: Number of deployment replicas
required: true
name: REPLICAS
value: "1"
- description: Variable which defines whether app is in debug mode
displayName: Enable debuging
required: true
name: DEBUG
value: "False"
- description: Sentry DSN
displayName: Sentry DSN
required: false
name: SENTRY_DSN
value: ""