Skip to content

Commit 7942b6b

Browse files
committed
Update deployment and stress test with locust
1 parent ed2e83a commit 7942b6b

26 files changed

+280
-8
lines changed

kubernetes/collab-service-HPA.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: collab
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: collab
10+
minReplicas: 1
11+
maxReplicas: 5
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 80

kubernetes/collab-service-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ spec:
2525
ports:
2626
- containerPort: 4000
2727
name: collab
28+
resources:
29+
requests:
30+
cpu: "100m"
31+
memory: "128Mi"
32+
limits:
33+
cpu: "200m"
34+
memory: "256Mi"

kubernetes/comms-HPA.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: comms
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: comms
10+
minReplicas: 1
11+
maxReplicas: 5
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 80

kubernetes/comms-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ spec:
1818
ports:
1919
- containerPort: 4001
2020
name: comms
21+
resources:
22+
requests:
23+
cpu: "100m"
24+
memory: "128Mi"
25+
limits:
26+
cpu: "200m"
27+
memory: "256Mi"

kubernetes/comms-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ spec:
99
- protocol: TCP
1010
port: 4001
1111
targetPort: 4001
12-
type: LoadBalancer
12+
type: ClusterIP

kubernetes/formatter-HPA.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: formatter
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: formatter
10+
minReplicas: 1
11+
maxReplicas: 5
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 80

kubernetes/formatter-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ spec:
1818
ports:
1919
- containerPort: 5000
2020
name: formatter
21+
resources:
22+
requests:
23+
cpu: "100m"
24+
memory: "128Mi"
25+
limits:
26+
cpu: "200m"
27+
memory: "256Mi"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: inbound-gateway
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: inbound-gateway
10+
minReplicas: 1
11+
maxReplicas: 5
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 80

kubernetes/inbound-gateway-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ spec:
1818
imagePullPolicy: Always
1919
ports:
2020
- containerPort: 80
21+
resources:
22+
requests:
23+
cpu: "100m"
24+
memory: "128Mi"
25+
limits:
26+
cpu: "200m"
27+
memory: "256Mi"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: autoscaling/v2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: matching-service
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: matching-service
10+
minReplicas: 1
11+
maxReplicas: 5
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 80

0 commit comments

Comments
 (0)