mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/vault] Add affinity setting (#3841)
* Add affinity setting * Minor version bump to 0.4.0
This commit is contained in:
committed by
k8s-ci-robot
parent
7ac174ce54
commit
db54a3701b
@@ -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
|
||||
|
||||
@@ -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`.
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user