[incubator/vault] Add affinity setting (#3841)

* Add affinity setting

* Minor version bump to 0.4.0
This commit is contained in:
Simon Wydooghe
2018-03-14 10:27:04 -07:00
committed by k8s-ci-robot
parent 7ac174ce54
commit db54a3701b
4 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Vault, a tool for managing secrets
name: vault
version: 0.3.1
version: 0.4.0
appVersion: 0.9.0
home: https://www.vaultproject.io/
icon: https://www.vaultproject.io/assets/images/mega-nav/logo-vault-0f83e3d2.svg
+1
View File
@@ -56,6 +56,7 @@ The following tables lists the configurable parameters of the vault chart and th
| `replicaCount` | k8s replicas | `1` |
| `resources.limits.cpu` | Container requested CPU | `nil` |
| `resources.limits.memory` | Container requested memory | `nil` |
| `affinity` | Affinity settings | See values.yaml |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
+3 -9
View File
@@ -48,16 +48,10 @@ spec:
{{- end }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- if .Values.affinity }}
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app: {{ template "vault.fullname" . }}
release: {{ .Release.Name | quote }}
{{ tpl .Values.affinity . | indent 8 }}
{{- end }}
volumes:
- name: vault-config
configMap:
+11
View File
@@ -37,6 +37,17 @@ resources: {}
# requests:
# cpu: 100m
# memory: 128Mi
affinity: |
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app: {{ template "vault.fullname" . }}
release: {{ .Release.Name }}
vault:
# Only used to enable dev mode. When in dev mode, the rest of this config
# section below is not used to configure Vault. See