Skip to content

Commit b161635

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

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎hack/e2e-install-cozystack.bats‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ spec:
190190
isolated: true
191191
monitoring: false
192192
resourceQuotas:
193-
cpu: "50"
193+
cpu: "20"
194194
memory: "32Gi"
195195
storage: "100Gi"
196196
seaweedfs: false

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ metadata:
1616
spec:
1717
limits:
1818
- default:
19-
cpu: "250m"
20-
memory: "1Gi"
19+
cpu: "4"
20+
memory: "4Gi"
2121
defaultRequest:
2222
cpu: "100m"
2323
memory: "128Mi"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
{{- if eq $k "cpu" }}
9898
{{- $vcpuRequestF64 := (include "cozy-lib.resources.toFloat" $v) | float64 }}
9999
{{- $cpuRequestF64 := divf $vcpuRequestF64 $cpuAllocationRatio }}
100-
{{- $_ := set $output.requests $k ($v | toString) }}
100+
{{- $_ := set $output.requests $k ($cpuRequestF64 | toString) }}
101101
{{- $_ := set $output.limits $k ($v | toString) }}
102102
{{- else if eq $k "memory" }}
103103
{{- $vMemoryRequestF64 := (include "cozy-lib.resources.toFloat" $v) | float64 }}

0 commit comments

Comments
 (0)