Skip to content

Instantly share code, notes, and snippets.

@3ng1n33r
Created October 22, 2023 06:22
Show Gist options
  • Save 3ng1n33r/2dee181aea49d09100a1d6a0106c3b4b to your computer and use it in GitHub Desktop.
Save 3ng1n33r/2dee181aea49d09100a1d6a0106c3b4b to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-secrets
spec:
replicas: 1
selector:
matchLabels:
app: hello-secrets
template:
metadata:
labels:
app: hello-secrets
annotations:
vault.security.banzaicloud.io/vault-addr: "https://vault:8200"
vault.security.banzaicloud.io/vault-tls-secret: "vault-tls"
spec:
serviceAccountName: default
containers:
- name: alpine
image: alpine
command: ["sh", "-c", "echo $AWS_SECRET_ACCESS_KEY && echo going to sleep... && sleep 10000"]
env:
- name: AWS_SECRET_ACCESS_KEY
value: "vault:secret/data/demosecret/aws#AWS_SECRET_ACCESS_KEY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment