add external vault
This commit is contained in:
@@ -29,10 +29,10 @@ spec:
|
||||
app: vault-test
|
||||
annotations:
|
||||
vault.hashicorp.com/agent-inject: 'true'
|
||||
vault.hashicorp.com/role: 'vault-test'
|
||||
vault.hashicorp.com/agent-inject-secret-credentials: 'kv/secret/vault-test'
|
||||
vault.hashicorp.com/role: 'k8s-role'
|
||||
vault.hashicorp.com/agent-inject-secret-credentials: 'secret/k8s/config'
|
||||
vault.hashicorp.com/agent-inject-template-credentials: |
|
||||
{{- with secret "kv/secret/vault-test" -}}
|
||||
{{- with secret "secret/k8s/config" -}}
|
||||
postgresql://{{ .Data.data.username }}:{{ .Data.data.password }}@{{ .Data.data.psqlhost }}:5432/{{ .Data.data.database }}
|
||||
{{- end -}}
|
||||
spec:
|
||||
|
Reference in New Issue
Block a user