Skip to content

Commit f7f469c

Browse files
committed
add resource quota
1 parent 6676d07 commit f7f469c

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: synapse
3-
version: 0.4.0
3+
version: 0.4.1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{- if .Values.resourceQuota.enabled }}
2+
apiVersion: v1
3+
kind: ResourceQuota
4+
metadata:
5+
labels:
6+
addonmanager.kubernetes.io/mode: Reconcile
7+
name: synapse-critical-pods
8+
spec:
9+
hard:
10+
pods: 1G
11+
scopeSelector:
12+
matchExpressions:
13+
- operator: In
14+
scopeName: PriorityClass
15+
values:
16+
- system-node-critical
17+
- system-cluster-critical
18+
{{- end }}

charts/synapse/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,3 +490,6 @@ wellKnown:
490490
requests:
491491
cpu: 20m
492492
memory: 64Mi
493+
494+
resourceQuota:
495+
enabled: true

0 commit comments

Comments
 (0)