-
Notifications
You must be signed in to change notification settings - Fork 3
/
k8_config_testbed.yaml
196 lines (196 loc) · 5.09 KB
/
k8_config_testbed.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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
kind: Service
apiVersion: v1
metadata:
name: dqm-square-k8
namespace: dqm
spec:
selector:
app: dqmsquare-mirror-server-testbed
ports:
- port: 8084
targetPort: 8084
name: dqmsquare-mirror-server-testbed
- port: 18084
targetPort: 18084
name: dqmsquare-mirror-server-testbed-mon
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: dqmsquare-mirror-server-testbed
namespace: dqm
labels:
app: dqmsquare-mirror-server-testbed
spec:
selector:
matchLabels:
app: dqmsquare-mirror-server-testbed
replicas: 1
template: # This is the pod template
metadata:
labels:
app: dqmsquare-mirror-server-testbed
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: dqmsquare-mirror-server-testbed
image: registry.cern.ch/cmsweb/dqmsquare_mirror:latest #imagetag
command: ["./dqmsquare_k8_wrapper.sh", "server"]
args: []
resources:
requests:
memory: "100Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "400m"
ports:
- containerPort: 8084
protocol: TCP
name: crabserver
- containerPort: 18084
protocol: TCP
name: crabserver-mon
volumeMounts:
- mountPath: /cephfs/testbed
name: dqmsquare-mirror-pvc-testbed
volumes:
- name: dqmsquare-mirror-pvc-testbed
persistentVolumeClaim:
claimName: dqmsquare-mirror-pvc-testbed
readOnly: false
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: dqmsquare-mirror-parser-testbed
namespace: dqm
labels:
app: dqmsquare-mirror-parser-testbed
spec:
selector:
matchLabels:
app: dqmsquare-mirror-parser-testbed
replicas: 1
template: # This is the pod template
metadata:
labels:
app: dqmsquare-mirror-parser-testbed
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: dqmsquare-mirror-parser-testbed
image: registry.cern.ch/cmsweb/dqmsquare_mirror:latest #imagetag
command: ["./dqmsquare_k8_wrapper.sh", "parser"]
args: []
resources:
requests:
memory: "100Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "400m"
volumeMounts:
- mountPath: /cephfs/testbed
name: dqmsquare-mirror-pvc-testbed
volumes:
- name: dqmsquare-mirror-pvc-testbed
persistentVolumeClaim:
claimName: dqmsquare-mirror-pvc-testbed
readOnly: false
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: dqmsquare-mirror-robber-testbed
namespace: dqm
labels:
app: dqmsquare-mirror-robber-testbed
spec:
selector:
matchLabels:
app: dqmsquare-mirror-robber-testbed
replicas: 1
template: # This is the pod template
metadata:
labels:
app: dqmsquare-mirror-robber-testbed
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: dqmsquare-mirror-robber-testbed
image: registry.cern.ch/cmsweb/dqmsquare_mirror:latest #imagetag
command: ["./dqmsquare_k8_wrapper.sh", "robber"]
args: []
resources:
requests:
memory: "2Gi"
cpu: "400m"
limits:
memory: "4Gi"
cpu: "800m"
volumeMounts:
- mountPath: /cephfs/testbed
name: dqmsquare-mirror-pvc-testbed
- name: robot-secrets
mountPath: /etc/robots
volumes:
- name: dqmsquare-mirror-pvc-testbed
persistentVolumeClaim:
claimName: dqmsquare-mirror-pvc-testbed
readOnly: false
- name: robot-secrets
secret:
secretName: robot-secrets
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: dqmsquare-mirror-robber-oldruns-testbed
namespace: dqm
labels:
app: dqmsquare-mirror-robber-oldruns-testbed
spec:
selector:
matchLabels:
app: dqmsquare-mirror-robber-oldruns-testbed
replicas: 1
template: # This is the pod template
metadata:
labels:
app: dqmsquare-mirror-robber-oldruns-testbed
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: dqmsquare-mirror-robber-oldruns-testbed
image: registry.cern.ch/cmsweb/dqmsquare_mirror:latest #imagetag
command: ["./dqmsquare_k8_wrapper.sh", "robber_oldruns"]
args: []
resources:
requests:
memory: "2Gi"
cpu: "400m"
limits:
memory: "3Gi"
cpu: "800m"
volumeMounts:
- mountPath: /cephfs/testbed
name: dqmsquare-mirror-pvc-testbed
- name: robot-secrets
mountPath: /etc/robots
volumes:
- name: dqmsquare-mirror-pvc-testbed
persistentVolumeClaim:
claimName: dqmsquare-mirror-pvc-testbed
readOnly: false
- name: robot-secrets
secret:
secretName: robot-secrets