Skip to content

Commit

Permalink
Merge pull request #83 from linkinpark342/dind-resources
Browse files Browse the repository at this point in the history
Ability to control resources for dind container
  • Loading branch information
rimusz authored Dec 8, 2020
2 parents a9163f6 + 1e065d6 commit 25ab9b9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/agent/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Buildkite Agent Chart
name: agent
version: 0.4.8
version: 0.5.0
appVersion: 3.25.0
icon: https://buildkite.com/_next/static/assets/assets/images/brand-assets/buildkite-logo-portrait-on-light-61fc0230.png
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Parameter | Description | Default
`dind.enabled` | Enable preconfigured Docker-in-Docker (DinD) pod configuration | `false`
`dind.image` | Image to use for Docker-in-Docker (DinD) pod container | `docker:19.03-dind`
`dind.port` | Port Docker-in-Docker (DinD) daemon listens on as REST request proxy | `2375`
`dind.resources` | Pod resource requests & limits for dind sidecar (if enabled) | `{}`

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.

Expand Down
2 changes: 2 additions & 0 deletions stable/agent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ spec:
- name: service-key
mountPath: /etc/service_key
{{- end }}
resources:
{{ toYaml .Values.dind.resources | indent 12 }}
{{- end }}
{{- if .Values.podContainers }}{{ toYaml .Values.podContainers | nindent 8 }}{{- end }}
{{- with .Values.podSecurityContext }}
Expand Down
11 changes: 11 additions & 0 deletions stable/agent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,14 @@ dind:
enabled: false
image: docker:19.03-dind
port: 2375
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 500m
# memory: 1024Mi
# requests:
# cpu: 100m
# memory: 128Mi

0 comments on commit 25ab9b9

Please sign in to comment.