Skip to content

Commit 9b376e5

Browse files
authored
add init containers resources param (#294)
add init containers resources param (#294)
1 parent 57706e6 commit 9b376e5

File tree

8 files changed

+61
-0
lines changed

8 files changed

+61
-0
lines changed

components/tyk-dashboard/templates/deployment-dashboard.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ spec:
6464
securityContext:
6565
{{- toYaml .Values.dashboard.containerSecurityContext | nindent 12 }}
6666
{{- end }}
67+
resources:
68+
{{- toYaml .Values.dashboard.initContainers.initAnalyticsConf.resources | nindent 12 }}
6769
volumeMounts:
6870
- mountPath: /etc/tyk-dashboard
6971
name: analytics-conf

components/tyk-dashboard/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,18 @@ dashboard:
298298
# image pull policy
299299
pullPolicy: Always
300300

301+
initContainers:
302+
initAnalyticsConf:
303+
resources: {}
304+
# If you do want to specify resources, uncomment the following
305+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
306+
# limits:
307+
# cpu: 100m
308+
# memory: 128Mi
309+
# requests:
310+
# cpu: 100m
311+
# memory: 128Mi
312+
301313
# image pull secrets to use when pulling images from repository
302314
imagePullSecrets: []
303315

components/tyk-gateway/templates/deployment-gw-repset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ spec:
7777
securityContext:
7878
{{- toYaml .Values.gateway.containerSecurityContext | nindent 12 }}
7979
{{- end }}
80+
resources:
81+
{{- toYaml .Values.gateway.initContainers.setupDirectories.resources | nindent 12 }}
8082
volumeMounts:
8183
- name: tyk-scratch
8284
mountPath: /mnt/tyk-gateway

components/tyk-gateway/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ gateway:
249249
setupDirectories:
250250
repository: busybox
251251
tag: 1.32
252+
resources: {}
253+
# If you do want to specify resources, uncomment the following
254+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
255+
# limits:
256+
# cpu: 100m
257+
# memory: 128Mi
258+
# requests:
259+
# cpu: 100m
260+
# memory: 128Mi
252261

253262
# image pull secrets to use when pulling images from repository
254263
imagePullSecrets: []

tyk-control-plane/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,15 @@ tyk-gateway:
330330
setupDirectories:
331331
repository: busybox
332332
tag: 1.32
333+
resources: {}
334+
# If you do want to specify resources, uncomment the following
335+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
336+
# limits:
337+
# cpu: 100m
338+
# memory: 128Mi
339+
# requests:
340+
# cpu: 100m
341+
# memory: 128Mi
333342

334343
# image pull secrets to use when pulling images from repository
335344
imagePullSecrets: []

tyk-data-plane/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ tyk-gateway:
249249
setupDirectories:
250250
repository: busybox
251251
tag: 1.32
252+
resources: {}
253+
# If you do want to specify resources, uncomment the following
254+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
255+
# limits:
256+
# cpu: 100m
257+
# memory: 128Mi
258+
# requests:
259+
# cpu: 100m
260+
# memory: 128Mi
252261

253262
# image pull secrets to use when pulling images from repository
254263
imagePullSecrets: []

tyk-oss/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ tyk-gateway:
232232
setupDirectories:
233233
repository: busybox
234234
tag: 1.32
235+
resources: {}
236+
# If you do want to specify resources, uncomment the following
237+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
238+
# limits:
239+
# cpu: 100m
240+
# memory: 128Mi
241+
# requests:
242+
# cpu: 100m
243+
# memory: 128Mi
235244

236245
# image pull secrets to use when pulling images from repository
237246
imagePullSecrets: []

tyk-stack/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,15 @@ tyk-gateway:
339339
setupDirectories:
340340
repository: busybox
341341
tag: 1.32
342+
resources: {}
343+
# If you do want to specify resources, uncomment the following
344+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
345+
# limits:
346+
# cpu: 100m
347+
# memory: 128Mi
348+
# requests:
349+
# cpu: 100m
350+
# memory: 128Mi
342351

343352
# image pull secrets to use when pulling images from repository
344353
imagePullSecrets: []

0 commit comments

Comments
 (0)