Open rgarcia6520 opened 2 years ago
+1 on this .We are facing a similar issue as we need to customize the AGENT_INJECT_VAULT_ADDR
value to support our TLS setup but without disabling the vault server deployment!
+1 here too.
Looking at the helm chart manifest, I see:
- name: AGENT_INJECT_VAULT_ADDR
{{- if .Values.global.externalVaultAddr }}
value: "{{ .Values.global.externalVaultAddr }}"
{{- else if .Values.injector.externalVaultAddr }}
value: "{{ .Values.injector.externalVaultAddr }}"
{{- else }}
value: {{ include "vault.scheme" . }}://{{ template "vault.fullname" . }}.{{ include "vault.namespace" . }}.svc:{{ .Values.server.service.port }}
{{- end }}
But in the values.yaml
,
section injector:
# Deprecated: Please use global.externalVaultAddr instead.
externalVaultAddr: ""
section global:
# External vault server address for the injector and CSI provider to use.
# Setting this will disable deployment of a vault server.
externalVaultAddr: ""
At some point I guess the plan is to remove injector.externalVaultAddr
. When this is done, can you provide an alternative method of setting the address of vault in the injector.
I want to set the external Vault Addr for the injector (for tls/cert reasons), and also deploy the server. There are cases where its not a mutually exclusive setting.
Thanks,
Edit:
I think its not currently possible to deploy vault server set and set an externalVaultAddr
(i.e., configure AGENT_INJECT_VAULT_ADDR
. I had to amend my ansible role to post-json-patch the AGENT_INJECT_VAULT_ADDR
env variable.
Describe the bug In environments where we are utilizing vault as part of this helm-chart but using Istio LoadBalancers, or AWS ELBs forwarding traffic to the Vault server the included agent injector deployment is not able to get the correct VAULT_ADDR with the existing options to set
AGENT_INJECT_VAULT_ADDR
To Reproduce Steps to reproduce the behavior:
https://vault-vault.vault.svc:8200
Expected behavior Agent Injector VAULT_ADDR endpoint is configurable
Environment
Chart values:
Additional context Add any other context about the problem here.