mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: basic-secret
|
|
labels:
|
|
app: basic-secret
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: basic-secret
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
vault.hashicorp.com/agent-inject: "true"
|
|
vault.hashicorp.com/tls-skip-verify: "true"
|
|
vault.hashicorp.com/agent-inject-secret-helloworld: "secret/basic-secret/helloworld"
|
|
vault.hashicorp.com/agent-inject-template-helloworld: |
|
|
{{- with secret "secret/basic-secret/helloworld" -}}
|
|
{
|
|
"username" : "{{ .Data.username }}",
|
|
"password" : "{{ .Data.password }}"
|
|
}
|
|
{{- end }}
|
|
vault.hashicorp.com/role: "basic-secret-role"
|
|
labels:
|
|
app: basic-secret
|
|
spec:
|
|
serviceAccountName: basic-secret
|
|
containers:
|
|
- name: app
|
|
image: jweissig/app:0.0.1
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: basic-secret
|
|
labels:
|
|
app: basic-secret |