Create pod-single-secret-env-variable.yaml

pull/46254/head
Sabbir Ahmed Shameem 2024-05-07 19:24:21 +06:00 committed by GitHub
parent beff1bb3ef
commit 94c85741f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Pod
metadata:
name: env-single-secret
spec:
containers:
- name: envars-test-container
image: nginx
env:
- name: SECRET_USERNAME
valueFrom:
secretKeyRef:
name: backend-user
key: backend-username