This repository has been archived by the owner on Dec 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeployment.yaml
159 lines (159 loc) · 3.75 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
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
apiVersion: v1
kind: Service
metadata:
name: master
labels:
app: master
spec:
type: NodePort
ports:
- port: 8010
protocol: TCP
selector:
app: buildbot-master
---
apiVersion: v1
kind: Service
metadata:
name: master-service
labels:
app: master
spec:
type: ClusterIP
ports:
- port: 9989
protocol: TCP
selector:
app: buildbot-master
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: master
spec:
selector:
matchLabels:
app: buildbot-master
replicas: 1
template:
metadata:
labels:
app: buildbot-master
spec:
containers:
- name: buildbot-master
image: gcr.io/clementine-data/master
ports:
- containerPort: 8010
- containerPort: 9989
volumeMounts:
- name: git-volume
mountPath: /config
subPath: Buildbot/config
- name: persistent-data
mountPath: /persistent-data
- name: secrets
mountPath: /config/passwords.json
subPath: passwords.json
- name: secrets
mountPath: /config/passwords-external.json
subPath: passwords-external.json
volumes:
- name: git-volume
gitRepo:
repository: "https://github.com/clementine-player/Buildbot"
- name: persistent-data
- name: secrets
secret:
secretName: slave-passwords
items:
- key: passwords.json
path: passwords.json
- key: passwords-external.json
path: passwords-external.json
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: slave-ubuntu-trusty-32
spec:
selector:
matchLabels:
app: slave-ubuntu-trusty-32
replicas: 1
template:
metadata:
labels:
app: slave-ubuntu-trusty-32
spec:
containers:
- name: slave-ubuntu-trusty-32
image: gcr.io/clementine-data/slave-ubuntu-trusty-32
env:
- name: "MASTER_PORT_9989_TCP_ADDR"
value: "master-service"
- name: "MASTER_PORT_9989_TCP_PORT"
value: "9989"
volumeMounts:
- name: git-volume
mountPath: /config
subPath: Buildbot/config
- name: persistent-data
mountPath: /persistent-data
- name: secrets
mountPath: /config/passwords.json
subPath: passwords.json
volumes:
- name: secrets
secret:
secretName: slave-passwords
items:
- key: passwords.json
path: passwords.json
- name: persistent-data
- name: git-volume
gitRepo:
repository: "https://github.com/clementine-player/Buildbot"
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: slave-ubuntu-trusty-64
spec:
selector:
matchLabels:
app: slave-ubuntu-trusty-64
replicas: 1
template:
metadata:
labels:
app: slave-ubuntu-trusty-64
spec:
containers:
- name: slave-ubuntu-trusty-64
image: gcr.io/clementine-data/slave-ubuntu-trusty-64
env:
- name: "MASTER_PORT_9989_TCP_ADDR"
value: "master-service"
- name: "MASTER_PORT_9989_TCP_PORT"
value: "9989"
volumeMounts:
- name: git-volume
mountPath: /config
subPath: Buildbot/config
- name: persistent-data
mountPath: /persistent-data
- name: secrets
mountPath: /config/passwords.json
subPath: passwords.json
volumes:
- name: secrets
secret:
secretName: slave-passwords
items:
- key: passwords.json
path: passwords.json
- name: persistent-data
- name: git-volume
gitRepo:
repository: "https://github.com/clementine-player/Buildbot"