Skip to content

Commit fe677bd

Browse files
authored
chore: remove limits (#2218)
1 parent 7b8b037 commit fe677bd

File tree

5 files changed

+0
-63
lines changed

5 files changed

+0
-63
lines changed

charts/app/templates/backend/templates/deployment.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ spec:
4545
- name: FLYWAY_GROUP
4646
value: "true"
4747
resources:
48-
limits:
49-
cpu: 200m
50-
memory: 200Mi
5148
requests:
5249
cpu: 50m
5350
memory: 75Mi
@@ -90,9 +87,6 @@ spec:
9087
periodSeconds: 30
9188
timeoutSeconds: 5
9289
resources: # this is optional
93-
limits:
94-
cpu: 150m
95-
memory: 150Mi
9690
requests:
9791
cpu: 50m
9892
memory: 75Mi

charts/app/templates/frontend/templates/deployment.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ spec:
6666
periodSeconds: 30
6767
timeoutSeconds: 5
6868
resources:
69-
limits:
70-
cpu: 100m
71-
memory: 150Mi
7269
requests:
7370
cpu: 30m
7471
memory: 50Mi

charts/app/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ backend:
5656
- prod/api-2
5757
#-- resources specific to vault initContainer. it is optional and is an object.
5858
resources:
59-
limits:
60-
cpu: 50m
61-
memory: 50Mi
6259
requests:
6360
cpu: 50m
6461
memory: 25Mi
@@ -157,7 +154,4 @@ bitnamipg:
157154
requests:
158155
cpu: 50m
159156
memory: 150Mi
160-
limits:
161-
cpu: 150m
162-
memory: 250Mi
163157

charts/crunchy/templates/PostgresCluster.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ spec:
5252
requests:
5353
cpu: {{ .Values.crunchy.pgmonitor.exporter.requests.cpu }}
5454
memory: {{ .Values.crunchy.pgmonitor.exporter.requests.memory }}
55-
limits:
56-
cpu: {{ .Values.crunchy.pgmonitor.exporter.limits.cpu }}
57-
memory: {{ .Values.crunchy.pgmonitor.exporter.limits.memory }}
5855

5956
{{ end }}
6057

@@ -69,19 +66,13 @@ spec:
6966
requests:
7067
cpu: {{ .Values.crunchy.instances.requests.cpu }}
7168
memory: {{ .Values.crunchy.instances.requests.memory }}
72-
limits:
73-
cpu: {{ .Values.crunchy.instances.limits.cpu }}
74-
memory: {{ .Values.crunchy.instances.limits.memory }}
7569

7670
sidecars:
7771
replicaCertCopy:
7872
resources:
7973
requests:
8074
cpu: {{ .Values.crunchy.instances.replicaCertCopy.requests.cpu }}
8175
memory: {{ .Values.crunchy.instances.replicaCertCopy.requests.memory }}
82-
limits:
83-
cpu: {{ .Values.crunchy.instances.replicaCertCopy.limits.cpu }}
84-
memory: {{ .Values.crunchy.instances.replicaCertCopy.limits.memory }}
8576
dataVolumeClaimSpec:
8677
accessModes:
8778
- "ReadWriteOnce"
@@ -179,35 +170,23 @@ spec:
179170
requests:
180171
cpu: {{ .Values.crunchy.pgBackRest.repoHost.requests.cpu }}
181172
memory: {{ .Values.crunchy.pgBackRest.repoHost.requests.memory }}
182-
limits:
183-
cpu: {{ .Values.crunchy.pgBackRest.repoHost.limits.cpu }}
184-
memory: {{ .Values.crunchy.pgBackRest.repoHost.limits.memory }}
185173
sidecars:
186174
# this stuff is for the "pgbackrest" container in the "postgres-crunchy-ha" set of pods
187175
pgbackrest:
188176
resources:
189177
requests:
190178
cpu: {{ .Values.crunchy.pgBackRest.sidecars.requests.cpu }}
191179
memory: {{ .Values.crunchy.pgBackRest.sidecars.requests.memory }}
192-
limits:
193-
cpu: {{ .Values.crunchy.pgBackRest.sidecars.limits.cpu }}
194-
memory: {{ .Values.crunchy.pgBackRest.sidecars.limits.memory }}
195180
pgbackrestConfig:
196181
resources:
197182
requests:
198183
cpu: {{ .Values.crunchy.pgBackRest.sidecars.requests.cpu }}
199184
memory: {{ .Values.crunchy.pgBackRest.sidecars.requests.memory }}
200-
limits:
201-
cpu: {{ .Values.crunchy.pgBackRest.sidecars.limits.cpu }}
202-
memory: {{ .Values.crunchy.pgBackRest.sidecars.limits.memory }}
203185
jobs:
204186
resources:
205187
requests:
206188
cpu: {{ .Values.crunchy.pgBackRest.jobs.requests.cpu }}
207189
memory: {{ .Values.crunchy.pgBackRest.jobs.requests.memory }}
208-
limits:
209-
cpu: {{ .Values.crunchy.pgBackRest.jobs.limits.cpu }}
210-
memory: {{ .Values.crunchy.pgBackRest.jobs.limits.memory }}
211190
{{- end }}
212191
patroni:
213192
dynamicConfiguration:
@@ -240,9 +219,6 @@ spec:
240219
requests:
241220
cpu: {{ .Values.crunchy.proxy.pgBouncer.requests.cpu }}
242221
memory: {{ .Values.crunchy.proxy.pgBouncer.requests.memory }}
243-
limits:
244-
cpu: {{ .Values.crunchy.proxy.pgBouncer.limits.cpu }}
245-
memory: {{ .Values.crunchy.proxy.pgBouncer.limits.memory }}
246222
affinity:
247223
podAntiAffinity:
248224
preferredDuringSchedulingIgnoredDuringExecution:

charts/crunchy/values.yaml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,10 @@ crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single
3939
requests:
4040
cpu: 50m
4141
memory: 128Mi
42-
limits:
43-
cpu: 150m
44-
memory: 256Mi
4542
replicaCertCopy:
4643
requests:
4744
cpu: 1m
4845
memory: 32Mi
49-
limits:
50-
cpu: 50m
51-
memory: 64Mi
5246

5347
pgBackRest:
5448
enabled: true
@@ -81,30 +75,18 @@ crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single
8175
requests:
8276
cpu: 5m
8377
memory: 32Mi
84-
limits:
85-
cpu: 20m
86-
memory: 64Mi
8778
repoHost:
8879
requests:
8980
cpu: 20m
9081
memory: 128Mi
91-
limits:
92-
cpu: 50m
93-
memory: 256Mi
9482
sidecars:
9583
requests:
9684
cpu: 5m
9785
memory: 16Mi
98-
limits:
99-
cpu: 20m
100-
memory: 64Mi
10186
jobs:
10287
requests:
10388
cpu: 20m
10489
memory: 128Mi
105-
limits:
106-
cpu: 100m
107-
memory: 256Mi
10890

10991
patroni:
11092
postgresql:
@@ -129,9 +111,6 @@ crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single
129111
requests:
130112
cpu: 5m
131113
memory: 32Mi
132-
limits:
133-
cpu: 20m
134-
memory: 64Mi
135114
maxConnections: 10 # make sure less than postgres max connections
136115

137116
# Postgres Cluster resource values:
@@ -142,6 +121,3 @@ crunchy: # enable it for TEST and PROD, for PR based pipelines simply use single
142121
requests:
143122
cpu: 1m
144123
memory: 16Mi
145-
limits:
146-
cpu: 35m
147-
memory: 32Mi

0 commit comments

Comments
 (0)