Skip to content

Commit 3b5aed7

Browse files
authored
Merge pull request #425 from talset/master
Add resource requests/limits support for worker init-rm container
2 parents 5dd4b72 + 6745f0c commit 3b5aed7

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ The following table lists the configurable parameters of the Concourse chart and
311311
| `worker.annotations` | Annotations to be added to the worker pods | `{}` |
312312
| `worker.autoscaling` | Enable and configure pod autoscaling | `{}` |
313313
| `worker.cleanUpWorkDirOnStart` | Removes any previous state created in `concourse.worker.workDir` | `true` |
314+
| `worker.initRM.resources` | Resource requests/limits for the init-rm init container | `{}` |
314315
| `worker.emptyDirSize` | When persistance is disabled this value will be used to limit the emptyDir volume size | `nil` |
315316
| `worker.enabled` | Enable or disable the worker component. You should set postgres.enabled=false in order not to get an unnecessary Postgres chart deployed | `true` |
316317
| `worker.env` | Configure additional environment variables for the worker container(s) | `[]` |

templates/worker-statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ spec:
7070
imagePullPolicy: {{ .Values.imagePullPolicy | quote }}
7171
securityContext:
7272
privileged: true
73+
{{- if .Values.worker.initRM }}
74+
{{- if .Values.worker.initRM.resources }}
75+
resources:
76+
{{- toYaml .Values.worker.initRM.resources | nindent 12 }}
77+
{{- end }}
78+
{{- end }}
7379
command:
7480
- /bin/bash
7581
args:

values.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2612,6 +2612,23 @@ worker:
26122612
##
26132613
cleanUpWorkDirOnStart: true
26142614

2615+
## Configuration for the init-rm init container that cleans up the work dir.
2616+
##
2617+
initRM:
2618+
## Resource requests/limits for the init-rm init container.
2619+
## Required on OpenShift or clusters with LimitRange/ResourceQuota enforcement.
2620+
##
2621+
## Example:
2622+
## resources:
2623+
## requests:
2624+
## cpu: 100m
2625+
## memory: 128Mi
2626+
## limits:
2627+
## cpu: 200m
2628+
## memory: 256Mi
2629+
##
2630+
resources: {}
2631+
26152632
## Number of replicas.
26162633
##
26172634
replicas: 2

0 commit comments

Comments
 (0)