Make spire agent server address configurable

If your server is not in the same namespace or cluster as the
agent, you need a config option to specify where it is.

Signed-off-by: Kevin Fox <[email protected]>
This commit is contained in:
Kevin Fox
2023-03-06 06:40:58 -08:00
committed by kfox1111
parent cb627f04b2
commit f0b7f5bd8d
5 changed files with 12 additions and 2 deletions
@@ -8,7 +8,7 @@ data:
agent {
data_dir = "/run/spire"
log_level = {{ .Values.logLevel | quote }}
server_address = "{{ .Release.Name }}-server"
server_address = {{ include "spire-agent.server-address" . | trim | quote }}
server_port = {{ .Values.server.port | quote }}
socket_path = {{ include "spire.agent-socket-path" . | quote }}
trust_bundle_path = "/run/spire/bundle/bundle.crt"