Added a Tolerations option which is applied to the pods in the stateful set (#7369)

This commit is contained in:
Brandon Harper
2018-08-27 12:10:18 -07:00
committed by k8s-ci-robot
parent d9d686b1a9
commit adb3bc965a
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: cockroachdb
home: https://www.cockroachlabs.com
version: 1.2.3
version: 1.2.4
appVersion: 2.0.5
description: CockroachDB is a scalable, survivable, strongly-consistent SQL database.
icon: https://raw.githubusercontent.com/cockroachdb/cockroach/master/docs/media/cockroach_db.png
+1
View File
@@ -75,6 +75,7 @@ The following table lists the configurable parameters of the CockroachDB chart a
| `Secure.RequestCertsImageTag` | Image tag to use for requesting TLS certificates | `0.3` |
| `Secure.ServiceAccount.Create` | Whether to create a new RBAC service account | `true` |
| `Secure.ServiceAccount.Name` | Name of RBAC service account to use | `` |
| `Tolerations` | [Kubernetes tolerations](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) to label the pods in the StatefulSet with | `` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
@@ -237,6 +237,10 @@ spec:
nodeSelector:
{{ toYaml .Values.NodeSelector | indent 8 }}
{{- end }}
{{- if .Values.Tolerations }}
tolerations:
{{ toYaml .Values.Tolerations | indent 8 }}
{{- end }}
containers:
- name: "{{ printf "%s-%s" .Release.Name .Values.Name | trunc 56 }}"
image: "{{ .Values.Image }}:{{ .Values.ImageTag }}"
+1
View File
@@ -51,6 +51,7 @@ PodManagementPolicy: Parallel
UpdateStrategy:
type: RollingUpdate
NodeSelector: {}
Tolerations: {}
Secure:
Enabled: false
RequestCertsImage: "cockroachdb/cockroach-k8s-request-cert"