mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[incubator/vault] Use single consul token for vault and consul agent (#12844)
* Use single consul token for vault and consul agent Signed-off-by: Cyrille <cyrille@omise.co> * Bump version Signed-off-by: Cyrille <cyrille@omise.co>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
bc54518d74
commit
530638cd87
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
description: A Helm chart for Vault, a tool for managing secrets
|
||||
name: vault
|
||||
version: 0.18.2
|
||||
version: 0.18.3
|
||||
appVersion: 1.0.1
|
||||
home: https://www.vaultproject.io/
|
||||
icon: https://www.vaultproject.io/assets/images/mega-nav/logo-vault-0f83e3d2.svg
|
||||
|
||||
@@ -126,9 +126,14 @@ spec:
|
||||
GOSSIP_KEY="-config-file /etc/consul/encrypt.json"
|
||||
fi
|
||||
{{- end }}
|
||||
{{- if .Values.vault.config.storage.consul.token }}
|
||||
echo "{\"acl\":{\"tokens\":{\"agent\":\"{{ .Values.vault.config.storage.consul.token }}\"}}}" > /etc/consul/agent-token.json
|
||||
AGENT_TOKEN="-config-file /etc/consul/agent-token.json"
|
||||
{{- end }}
|
||||
|
||||
exec /bin/consul agent \
|
||||
$GOSSIP_KEY \
|
||||
$AGENT_TOKEN \
|
||||
-join={{- .Values.consulAgent.join }} \
|
||||
-data-dir=/etc/consul
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user