Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix k8s injector examples #8179

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix k8s injector examples
spangenberg committed Jan 18, 2020

Verified

This commit was signed with the committer’s verified signature. The key has expired.
spangenberg Daniel Spangenberg
commit 3707992b217dbd7f76d0bbbaca4351836991038c
8 changes: 3 additions & 5 deletions website/pages/docs/platform/k8s/injector/examples.mdx
Original file line number Diff line number Diff line change
@@ -157,16 +157,14 @@ spec:
vault.hashicorp.com/tls-secret: "vault-tls-client"
spec:
containers:
- name:app
- name: app
image: "app:1.0.0"
serviceAccountName: app-example
---
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"
}