67aa1fa26a
* Example for injecting single secret as env variable Define a container environment variable with data from a single Secret * Env variable using secret data * Update pod-single-secret-env-variable.yaml * Adding example for multiple env variable using secrets Adding example for multiple env variables using secrets * Create pod-secret-envFrom.yaml * Update pod-multiple-secret-env-variable.yaml * Update pod-multiple-secret-env-variable.yaml * Update pod-multiple-secret-env-variable.yaml * Update pod-single-secret-env-variable.yaml * Update pod-multiple-secret-env-variable.yaml * Update pod-single-secret-env-variable.yaml * Different ways to add env variable using secret Adding different ways to add env variable in pod using secret * Correcting formatting issues Correcting formatting issues * Correcting format issue
12 lines
183 B
YAML
12 lines
183 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: envfrom-secret
|
|
spec:
|
|
containers:
|
|
- name: envars-test-container
|
|
image: nginx
|
|
envFrom:
|
|
- secretRef:
|
|
name: test-secret
|