forked from kubernetes/test-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
36 lines (36 loc) · 952 Bytes
/
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: token-counter
labels:
app: token-counter
spec:
replicas: 1
template:
metadata:
labels:
app: token-counter
spec:
containers:
- name: token-counter
args:
- --stderrthreshold=0
- --influx-host=http://influxdb-kubernetes:8086
- --influx-password=$(INFLUXDB_ROOT_PWD)
- --token=/github-tokens/k8s-merge-robot
- --token=/github-tokens/k8s-ci-robot
image: k8s.gcr.io/github-token-counter:v20170303-212840
env:
- name: INFLUXDB_ROOT_PWD
valueFrom:
secretKeyRef:
name: influxdb-kubernetes
key: rootpassword
volumeMounts:
- mountPath: /github-tokens
readOnly: true
name: github-tokens-secret
volumes:
- name: github-tokens-secret
secret:
secretName: github-tokens