forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 41
/
deployment.yaml
52 lines (52 loc) · 1.38 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: fetcher-${PROJECT}-${GH_ORGANIZATION}-${GH_REPOSITORY}
labels:
app: fetcher
project: ${PROJECT}
gh-organization: ${GH_ORGANIZATION}
gh-repository: ${GH_REPOSITORY}
spec:
replicas: 1
template:
metadata:
labels:
app: fetcher
project: ${PROJECT}
gh-organization: ${GH_ORGANIZATION}
gh-repository: ${GH_REPOSITORY}
spec:
containers:
- name: fetcher
args:
- --organization=${GH_ORGANIZATION}
- --project=${GH_REPOSITORY}
- --token-file=/etc/secret-volume/k8s-merge-robot
- --stderrthreshold=0
- --host=sqlproxy
- --user=$(MYSQL_WRITER_USER)
- --password=$(MYSQL_WRITER_PASS)
image: k8s.gcr.io/github-fetcher:v20170327-143731
resources:
requests:
cpu: 0m
volumeMounts:
- mountPath: /etc/secret-volume
readOnly: true
name: github-tokens-secret
env:
- name: MYSQL_WRITER_USER
valueFrom:
secretKeyRef:
name: sqlproxy
key: writer-user
- name: MYSQL_WRITER_PASS
valueFrom:
secretKeyRef:
name: sqlproxy
key: writer-pass
volumes:
- name: github-tokens-secret
secret:
secretName: github-tokens