DinD deployment more flexible (#3274)

- Added DinD resources limits/requests to values.yaml
- Added DinD storage driver to values.yaml
This commit is contained in:
Christian Roggia
2018-01-09 21:57:12 -08:00
committed by k8s-ci-robot
parent 43a5630c71
commit 67f6c3f509
4 changed files with 23 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: drone
home: https://drone.io/
icon: http://docs.drone.io/logo.svg
version: 0.2.0
version: 0.2.1
appVersion: 0.8.2
description: Drone is a Continuous Delivery system built on container technology
keywords:
+2
View File
@@ -55,6 +55,8 @@ The following tables lists the configurable parameters of the drone charts and t
| `server.resources` | Drone **server** pod resource requests & limits | `{}` |
| `agent.env` | Drone **agent** environment variables | `(default values)` |
| `agent.resources` | Drone **agent** pod resource requests & limits | `{}` |
| `dind.driver` | **DinD** storage driver | `overlay2` |
| `dind.resources` | **DinD** pod resource requests & limits | `{}` |
| `persistence.enabled` | Use a PVC to persist data | `true` |
| `persistence.existingClaim` | Use an existing PVC to persist data | `nil` |
| `persistence.storageClass` | Storage class of backing PVC | `nil` |
@@ -42,9 +42,11 @@ spec:
imagePullPolicy: {{ .Values.images.dind.pullPolicy }}
env:
- name: DOCKER_DRIVER
value: overlay
value: {{ .Values.dind.driver }}
securityContext:
privileged: true
resources:
{{ toYaml .Values.dind.resources | indent 10 }}
volumeMounts:
- name: docker-graph-storage
mountPath: /var/lib/docker
+17
View File
@@ -115,6 +115,23 @@ agent:
# memory: 2Gi
# cpu: 1
dind:
## Docker storage driver.
## Your DinD instance should be using the same driver as your host.
## ref: https://docs.docker.com/engine/userguide/storagedriver/selectadriver/
##
driver: overlay2
## CPU and memory limits for dind
##
resources: {}
# requests:
# memory: 32Mi
# cpu: 40m
# limits:
# memory: 2Gi
# cpu: 1
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##