Fix k8s injector examples (#8179)
This commit is contained in:
parent
6b602ea068
commit
c64c2bf512
|
@ -157,7 +157,7 @@ spec:
|
|||
vault.hashicorp.com/tls-secret: "vault-tls-client"
|
||||
spec:
|
||||
containers:
|
||||
- name:app
|
||||
- name: app
|
||||
image: "app:1.0.0"
|
||||
serviceAccountName: app-example
|
||||
---
|
||||
|
@ -165,8 +165,6 @@ apiVersion: v1
|
|||
kind: ConfigMap
|
||||
metadata:
|
||||
name: my-configmap
|
||||
agent-config
|
||||
app: app-example
|
||||
data:
|
||||
config.hcl: |
|
||||
"auto_auth" = {
|
||||
|
@ -190,7 +188,7 @@ data:
|
|||
"pid_file" = "/home/vault/.pid"
|
||||
|
||||
"template" = {
|
||||
"contents" = "{{- with secret "database/creds/db-app" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}"
|
||||
"contents" = "{{- with secret \"database/creds/db-app\" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}"
|
||||
"destination" = "/vault/secrets/db-creds"
|
||||
}
|
||||
|
||||
|
@ -222,7 +220,7 @@ data:
|
|||
"pid_file" = "/home/vault/.pid"
|
||||
|
||||
"template" = {
|
||||
"contents" = "{{- with secret "database/creds/db-app" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}"
|
||||
"contents" = "{{- with secret \"database/creds/db-app\" -}}postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable{{- end }}"
|
||||
"destination" = "/vault/secrets/db-creds"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue