Skip to content

Commit 48dd942

Browse files
committed
fix limit of resources in quota
Signed-off-by: IvanHunters <[email protected]>
1 parent cfc87c8 commit 48dd942

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/apps/tenant/templates/quota.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ metadata:
1616
spec:
1717
limits:
1818
- default:
19-
cpu: "500m"
19+
cpu: "250m"
2020
memory: "1Gi"
2121
defaultRequest:
2222
cpu: "100m"

‎packages/library/cozy-lib/templates/_resources.tpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
{{- range $k, $v := $args }}
9797
{{- if eq $k "cpu" }}
9898
{{- $vcpuRequestF64 := (include "cozy-lib.resources.toFloat" $v) | float64 }}
99-
{{- $cpuRequestF64 := divf $vcpuRequestF64 1.5 }}
99+
{{- $cpuRequestF64 := divf $vcpuRequestF64 3 }}
100100
{{- $_ := set $output.requests $k ($cpuRequestF64 | toString) }}
101101
{{- $_ := set $output.limits $k ($v | toString) }}
102102
{{- else if eq $k "memory" }}

0 commit comments

Comments
 (0)