Skip to content

Commit 8fcf33a

Browse files
chore: add resources req limit on all component
1 parent 2664a82 commit 8fcf33a

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed

helm/api-platform/templates/deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ spec:
7272
readinessProbe:
7373
tcpSocket:
7474
port: 80
75-
initialDelaySeconds: 3
76-
periodSeconds: 3
75+
initialDelaySeconds: 10
76+
periodSeconds: 10
7777
livenessProbe:
7878
tcpSocket:
7979
port: 80
80-
initialDelaySeconds: 3
81-
periodSeconds: 3
80+
initialDelaySeconds: 10
81+
periodSeconds: 10
8282
resources:
83-
{{- toYaml .Values.resources | nindent 12 }}
83+
{{- toYaml .Values.php.resources | nindent 12 }}
8484
- name: {{ .Chart.Name }}-php
8585
securityContext:
8686
{{- toYaml .Values.securityContext | nindent 12 }}

helm/api-platform/templates/pwa-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
path: /
7070
port: http
7171
resources:
72-
{{- toYaml .Values.resources | nindent 12 }}
72+
{{- toYaml .Values.pwa.resources | nindent 12 }}
7373
{{- with .Values.nodeSelector }}
7474
nodeSelector:
7575
{{- toYaml . | nindent 8 }}

helm/api-platform/values.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ php:
1818
- "10.0.0.0/8"
1919
- "172.16.0.0/12"
2020
- "192.168.0.0/16"
21+
resources:
22+
requests:
23+
memory: 100Mi
24+
cpu: 50m
25+
limits:
26+
memory: 300Mi
2127

2228
pwa:
2329
image:
@@ -27,6 +33,12 @@ pwa:
2733
tag: ""
2834
appSecret: ""
2935
oidcClientId: api-platform-pwa
36+
resources:
37+
requests:
38+
memory: 100Mi
39+
cpu: 50m
40+
limits:
41+
memory: 300Mi
3042

3143
caddy:
3244
image:
@@ -85,6 +97,12 @@ keycloak:
8597
pullPolicy: IfNotPresent
8698
# Overrides the image tag whose default is the chart appVersion.
8799
tag: ""
100+
resources:
101+
requests:
102+
memory: 300Mi
103+
cpu: 200m
104+
limits:
105+
memory: 500Mi
88106
service:
89107
type: ClusterIP
90108
extraEnvVars:
@@ -146,6 +164,13 @@ keycloak:
146164

147165
external-dns:
148166
enabled: true
167+
resources:
168+
requests:
169+
memory: 50Mi
170+
cpu: 50m
171+
limits:
172+
memory: 200Mi
173+
cpu: 100m
149174
domainFilters:
150175
- chart-example.local
151176
provider: cloudflare

0 commit comments

Comments
 (0)