-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
deployment.yaml
62 lines (61 loc) · 1.59 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
57
58
59
60
61
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: boskos-janitor
labels:
app: boskos-janitor
namespace: test-pods
spec:
replicas: 3 # 3 distributed janitor instances for gke
template:
metadata:
labels:
app: boskos-janitor
spec:
terminationGracePeriodSeconds: 300
containers:
- name: boskos-janitor
image: gcr.io/k8s-testimages/janitor:v20180725-c421ed4f9
args:
- --service-account=/etc/service-account/service-account.json
- --resource-type=gke-project
- --pool-size=20
volumeMounts:
- mountPath: /etc/service-account
name: service
readOnly: true
volumes:
- name: service
secret:
secretName: service-account
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: boskos-janitor-nongke
labels:
app: boskos-janitor-nongke
namespace: test-pods
spec:
replicas: 4 # 4 distributed janitor instances
template:
metadata:
labels:
app: boskos-janitor-nongke
spec:
terminationGracePeriodSeconds: 300
containers:
- name: boskos-janitor-nongke
image: gcr.io/k8s-testimages/janitor:v20180725-c421ed4f9
args:
- --service-account=/etc/service-account/service-account.json
- --resource-type=gce-project,gpu-project,ingress-project,istio-project
- --pool-size=20
volumeMounts:
- mountPath: /etc/service-account
name: service
readOnly: true
volumes:
- name: service
secret:
secretName: service-account