Created
July 15, 2023 02:27
-
-
Save xximjasonxx/77e3f4eff7f8861f94a6b106c7f4d846 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
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