From 8259e61d89ad1c1cb1f4773dfe4bbbab34f65e93 Mon Sep 17 00:00:00 2001 From: Andrey Voronkov Date: Tue, 2 Oct 2018 12:56:47 +0300 Subject: [PATCH] Add affinity rules setting ability to bitnami/etcd. --- bitnami/etcd/Chart.yaml | 2 +- bitnami/etcd/README.md | 1 + bitnami/etcd/templates/statefulset.yaml | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bitnami/etcd/Chart.yaml b/bitnami/etcd/Chart.yaml index 39b8f6c3c..1354c9a93 100644 --- a/bitnami/etcd/Chart.yaml +++ b/bitnami/etcd/Chart.yaml @@ -1,5 +1,5 @@ name: etcd -version: 1.1.3 +version: 1.1.4 appVersion: 3.3.9 description: etcd is a distributed key value store that provides a reliable way to store data across a cluster of machines keywords: diff --git a/bitnami/etcd/README.md b/bitnami/etcd/README.md index 36cd65113..e1a7d5084 100644 --- a/bitnami/etcd/README.md +++ b/bitnami/etcd/README.md @@ -83,6 +83,7 @@ The following tables lists the configurable parameters of the etcd chart and the | `persistence.accessMode` | PVC Access Mode for etcd volume | `ReadWriteOnce` | | `persistence.size` | PVC Storage Request for etcd volume | `8Gi` | | `persistence.annotations` | Annotations for the PVC | `{}` | +| `affinity` | Affinity and AntiAffinity rules for pod assignment | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | | `resources` | CPU/Memory resource requests/limits | Memory: `256Mi`, CPU: `250m` | diff --git a/bitnami/etcd/templates/statefulset.yaml b/bitnami/etcd/templates/statefulset.yaml index bcc7d8412..31cd7ab2a 100644 --- a/bitnami/etcd/templates/statefulset.yaml +++ b/bitnami/etcd/templates/statefulset.yaml @@ -47,6 +47,10 @@ spec: fsGroup: {{ .Values.securityContext.fsGroup }} runAsUser: {{ .Values.securityContext.runAsUser }} {{- end }} + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} + {{- end }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }}