Created
September 21, 2021 16:49
-
-
Save wmene/acd709082c36e4e0499b22a1e7796584 to your computer and use it in GitHub Desktop.
This file contains 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: v1 | |
kind: Secret | |
metadata: | |
name: vsecret | |
annotations: | |
vault.security.banzaicloud.io/vault-addr: https://my-external.vault | |
vault.security.banzaicloud.io/vault-namespace: MyTeams/Namespace | |
vault.security.banzaicloud.io/vault-role: default | |
vault.security.banzaicloud.io/vault-skip-verify: "true" | |
vault.security.banzaicloud.io/vault-path: my-kube-path | |
vault.security.banzaicloud.io/vault-serviceaccount: default | |
type: Opaque | |
data: | |
foo: <#base64 encoded vault path#> | |
--- | |
# Working Pod | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: simple-pod | |
annotations: | |
vault.security.banzaicloud.io/vault-addr: https://my-external.vault | |
vault.security.banzaicloud.io/vault-namespace: MyTeams/Namespace | |
vault.security.banzaicloud.io/vault-role: default | |
vault.security.banzaicloud.io/vault-skip-verify: "true" | |
vault.security.banzaicloud.io/vault-path: my-kube-path | |
vault.security.banzaicloud.io/vault-serviceaccount: default | |
spec: | |
containers: | |
- name: simple-pod | |
image: alpine | |
imagePullPolicy: Always | |
command: ["tail", "-f", "/dev/null"] | |
envFrom: | |
- secretRef: | |
name: vsecret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment