Created
October 22, 2023 06:22
-
-
Save 3ng1n33r/2dee181aea49d09100a1d6a0106c3b4b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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