Created
March 29, 2021 10:37
-
-
Save developer-guy/88e8a3756f7b3317f4db29f13520085d to your computer and use it in GitHub Desktop.
bank-vaults Test Deployment Manifest
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.kubernetes.io/name: hello-secrets | |
template: | |
metadata: | |
labels: | |
app.kubernetes.io/name: hello-secrets | |
annotations: | |
vault.security.banzaicloud.io/vault-addr: "https://vault:8200" | |
vault.security.banzaicloud.io/vault-tls-secret: vault-tls | |
# vault.security.banzaicloud.io/vault-skip-verify: "false" | |
# vault.security.banzaicloud.io/vault-role: "default" | |
# vault.security.banzaicloud.io/vault-path: "kubernetes" | |
# vault.security.banzaicloud.io/vault-agent: "true" | |
spec: | |
initContainers: | |
- name: init-ubuntu | |
image: ubuntu | |
command: ["sh", "-c", "echo $AWS_SECRET_ACCESS_KEY && echo initContainers ready"] | |
env: | |
- name: AWS_SECRET_ACCESS_KEY | |
value: vault:secret/data/accounts/aws#${.AWS_SECRET_ACCESS_KEY} # Go templates are also supported with ${} delimiters | |
resources: | |
limits: | |
memory: "128Mi" | |
cpu: "100m" | |
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/accounts/aws#AWS_SECRET_ACCESS_KEY | |
resources: | |
limits: | |
memory: "128Mi" | |
cpu: "100m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment