-
Notifications
You must be signed in to change notification settings - Fork 15
/
03-selenosis.yaml
57 lines (57 loc) · 1.43 KB
/
03-selenosis.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenosis
namespace: selenosis
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
replicas: 2
selector:
matchLabels:
app: selenosis
template:
metadata:
labels:
app: selenosis
selenosis.app.type: worker
namespace: selenosis
spec:
containers:
- args: ["/selenosis", "--browsers-config", "./config/browsers.yaml", "--namespace", "selenosis", "--service-name", "seleniferous", "--browser-limit", "10", "--proxy-image", "alcounit/seleniferous:v1.0.2"]
image: alcounit/selenosis:v1.0.5
name: selenosis
resources:
limits:
cpu: "0.5"
memory: "128Mi"
requests:
cpu: "0.2"
memory: "128Mi"
ports:
- containerPort: 4444
name: selenium
protocol: TCP
volumeMounts:
- mountPath: ./config
name: browsers-config
imagePullPolicy: IfNotPresent
readinessProbe:
httpGet:
path: /healthz
port: 4444
periodSeconds: 2
initialDelaySeconds: 3
livenessProbe:
httpGet:
path: /healthz
port: 4444
periodSeconds: 2
initialDelaySeconds: 3
volumes:
- name: browsers-config
configMap:
name: selenosis-config