forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
56 lines (56 loc) · 1.65 KB
/
deployment.yaml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: transform-${PROJECT}-${GH_ORGANIZATION}-${GH_REPOSITORY}-${TRANSFORM_METRIC}
labels:
app: transform
project: ${PROJECT}
gh-organization: ${GH_ORGANIZATION}
gh-repository: ${GH_REPOSITORY}
transform-plugin: ${TRANSFORM_PLUGIN}
transform-metric: ${TRANSFORM_METRIC}
spec:
replicas: 1
template:
metadata:
labels:
app: transform
project: ${PROJECT}
gh-organization: ${GH_ORGANIZATION}
gh-repository: ${GH_REPOSITORY}
transform-plugin: ${TRANSFORM_PLUGIN}
transform-metric: ${TRANSFORM_METRIC}
spec:
containers:
- name: transform
args:
- --repository=${GH_ORGANIZATION}/${GH_REPOSITORY}
- --stderrthreshold=0
- --host=sqlproxy
- --user=$(MYSQL_READER_USER)
- --password=$(MYSQL_READER_PASS)
- --influx-host=http://influxdb-${PROJECT}:8086
- --influx-password=$(INFLUXDB_ROOT_PWD)
- --name=${TRANSFORM_METRIC}
- ${TRANSFORM_PLUGIN}
# plugin args should be appended here.
image: k8s.gcr.io/github-transform:v20170323-155737
resources:
requests:
cpu: 0m
env:
- name: INFLUXDB_ROOT_PWD
valueFrom:
secretKeyRef:
name: influxdb-${PROJECT}
key: rootpassword
- name: MYSQL_READER_USER
valueFrom:
secretKeyRef:
name: sqlproxy
key: reader-user
- name: MYSQL_READER_PASS
valueFrom:
secretKeyRef:
name: sqlproxy
key: reader-pass