Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created July 15, 2023 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/77e3f4eff7f8861f94a6b106c7f4d846 to your computer and use it in GitHub Desktop.
Save xximjasonxx/77e3f4eff7f8861f94a6b106c7f4d846 to your computer and use it in GitHub Desktop.
kind: Pod
apiVersion: v1
metadata:
name: busybox-secrets-store-inline
namespace: blog-post
spec:
serviceAccountName: kv-access-account
containers:
- name: busybox
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
env:
- name: PASSWORD
valueFrom:
secretKeyRef:
name: secret-blog-post
key: Password
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "azure-kv-password-provider"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment