Skip to content

Commit a0b11ce

Browse files
authored
Add resource and size limits on ephemeral storage (#418)
Signed-off-by: Antoine Bouhours <[email protected]>
1 parent eee1b00 commit a0b11ce

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

k8s/components/gridsuite/patches/cronjobs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ spec:
1414
resources:
1515
requests:
1616
memory: "384Mi"
17+
ephemeral-storage: 100Mi
1718
limits:
1819
memory: "384Mi"
20+
ephemeral-storage: 512Mi
1921
volumeMounts:
2022
- mountPath: /tmp
2123
name: tmp-emptydir
@@ -29,7 +31,8 @@ spec:
2931
imagePullPolicy: IfNotPresent
3032
volumes:
3133
- name: tmp-emptydir
32-
emptyDir: {}
34+
emptyDir:
35+
sizeLimit: 500Mi
3336
- name: common-application-configmap-volume
3437
configMap:
3538
name: common-application-configmap

k8s/components/gridsuite/patches/deployments-apache.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ spec:
1717
resources:
1818
requests:
1919
memory: "128Mi"
20+
ephemeral-storage: 12Mi
2021
limits:
2122
memory: "128Mi"
23+
ephemeral-storage: 64Mi
2224
startupProbe:
2325
httpGet:
2426
path: /
@@ -34,4 +36,5 @@ spec:
3436
port: 8080
3537
volumes:
3638
- name: run-emptydir
37-
emptyDir: {}
39+
emptyDir:
40+
sizeLimit: 10Mi

k8s/components/gridsuite/patches/deployments-springboot.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ spec:
3434
path: /actuator/health/readiness
3535
port: 8080
3636
args: ["--spring.config.additional-location=/config/"]
37+
resources:
38+
requests:
39+
ephemeral-storage: 100Mi
40+
limits:
41+
ephemeral-storage: 512Mi
3742
restartPolicy: Always
3843
volumes:
3944
- name: common-application-configmap-volume
4045
configMap:
4146
name: common-application-configmap
4247
- name: tmp-emptydir
43-
emptyDir: {}
48+
emptyDir:
49+
sizeLimit: 500Mi

0 commit comments

Comments
 (0)