[stable/concourse] Allow for additional affinities (#2300)

This commit is contained in:
Frode Egeland
2017-10-01 00:07:10 -04:00
committed by Vic Iglesias
parent 5d4b769dd4
commit 70390438b5
4 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: concourse
version: 0.5.0
version: 0.6.0
appVersion: 3.3.2
description: Concourse is a simple and scalable CI system.
icon: https://avatars1.githubusercontent.com/u/7809479
+1
View File
@@ -137,6 +137,7 @@ The following tables lists the configurable parameters of the Concourse chart an
| `worker.replicas` | Number of Concourse Worker replicas | `2` |
| `worker.minAvailable` | Minimun number of workers available after an eviction | `1` |
| `worker.resources` | Concourse Worker resource requests and limits | `{requests: {cpu: "100m", memory: "512Mi"}}` |
| `worker.additionalAffinities` | Additional affinities to apply to worker pods. E.g: node affinity | `nil` |
| `persistence.enabled` | Enable Concourse persistence using Persistent Volume Claims | `true` |
| `persistence.worker.class` | Concourse Worker Persistent Volume Storage Class | `generic` |
| `persistence.worker.accessMode` | Concourse Worker Persistent Volume Access Mode | `ReadWriteOnce` |
@@ -77,6 +77,9 @@ spec:
- name: concourse-work-dir
mountPath: /concourse-work-dir
affinity:
{{- if .Values.worker.additionalAffinities }}
{{ toYaml .Values.worker.additionalAffinities | indent 8 }}
{{- end }}
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
+14
View File
@@ -362,6 +362,20 @@ worker:
# annotations:
# iam.amazonaws.com/role: arn:aws:iam::123456789012:role/concourse
## Additional affinities to add to the worker pods.
## Useful if you prefer to run workers on non-spot instances, for example
##
# additionalAffinities:
# nodeAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 50
# preference:
# matchExpressions:
# - key: spot
# operator: NotIn
# values:
# - "true"
## Persistent Volume Storage configuration.
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes
##