Skip to content

Commit 98109b0

Browse files
committed
Put limis on test smoke, does not need mulple replicas and being allowed loads of memory all the time
1 parent 1d358aa commit 98109b0

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

apps/test-smoke/base/deployment.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
app: testsmoke-web
88
spec:
9-
replicas: 3
9+
replicas: 1
1010
selector:
1111
matchLabels:
1212
app: testsmoke-web
@@ -23,6 +23,12 @@ spec:
2323
# args: [ "--http-socket", ":5001" ]
2424
ports:
2525
- containerPort: 5555
26+
resources:
27+
# Manage how much memory is allocated, could add cpu if we wanted
28+
requests:
29+
memory: "10Mi"
30+
limits:
31+
memory: "20Mi"
2632
---
2733
apiVersion: apps/v1
2834
kind: Deployment
@@ -31,7 +37,7 @@ metadata:
3137
labels:
3238
app: testsmoke-api
3339
spec:
34-
replicas: 3
40+
replicas: 1
3541
selector:
3642
matchLabels:
3743
app: testsmoke-api
@@ -52,6 +58,12 @@ spec:
5258
- name: docker-local-yaml
5359
mountPath: /var/lib/coresmokedb-api/environments/docker_local.yml
5460
subPath: docker_local.yaml
61+
resources:
62+
# Manage how much memory is allocated, could add cpu if we wanted
63+
requests:
64+
memory: "1000Mi"
65+
limits:
66+
memory: "3500Mi"
5567
volumes:
5668
- name: docker-local-yaml
5769
secret:

0 commit comments

Comments
 (0)