forked from Intersmash/intersmash
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (80 loc) · 1.62 KB
/
hyperfoil.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
apiVersion: v1
kind: List
items:
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: controller
namespace: test-k8s-man1
rules:
- apiGroups:
- ""
resources:
- pods
- pods/log
- pods/status
- pods/finalizer
verbs:
- "*"
- apiVersion: v1
kind: ServiceAccount
metadata:
name: controller
namespace: test-k8s-man1
- apiVersion: v1
kind: Service
metadata:
labels:
app: hyperfoil
name: hyperfoil
namespace: test-k8s-man1
spec:
ports:
- name: hyperfoil
port: 8090
protocol: TCP
targetPort: 8090
selector:
app: hyperfoil
role: controller
sessionAffinity: None
type: NodePort
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: controller
namespace: test-k8s-man1
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: controller
subjects:
- kind: ServiceAccount
name: controller
namespace: test-k8s-man1
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hyperfoil
name: controller
namespace: test-k8s-man1
spec:
replicas: 1
selector:
matchLabels:
app: hyperfoil
template:
metadata:
labels:
app: hyperfoil
spec:
containers:
- command:
- /deployment/bin/controller.sh
- -Dio.hyperfoil.deploy.timeout=120000
- -Dio.hyperfoil.deployer=k8s
- -Dio.hyperfoil.controller.host=0.0.0.0
image: quay.io/hyperfoil/hyperfoil:latest
name: hyperfoil
serviceAccountName: controller