modified: README.md
This commit is contained in:
1 parent
e4db94be2e
commit
adb0d7dd21
1 file changed
+16
-1
@@ -35,6 +35,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling,
|
|||||||
- [Manifest - StringData](#manifest---stringdata)
|
- [Manifest - StringData](#manifest---stringdata)
|
||||||
- [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables)
|
- [Inline with heredoc and environment variables](#inline-with-heredoc-and-environment-variables)
|
||||||
- [substr](#substr)
|
- [substr](#substr)
|
||||||
|
- [using as env](#using-as-env)
|
||||||
- [mounting](#mounting)
|
- [mounting](#mounting)
|
||||||
- [annotations](#annotations)
|
- [annotations](#annotations)
|
||||||
- [nodes](#nodes)
|
- [nodes](#nodes)
|
||||||
@@ -684,10 +685,24 @@ envsubst < ./secret.yaml | kubectl apply -f -
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### using as env
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
containers:
|
||||||
|
image: myimage
|
||||||
|
env:
|
||||||
|
- name: DB_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: my-secret
|
||||||
|
key: PASSWORD
|
||||||
|
```
|
||||||
|
|
||||||
### mounting
|
### mounting
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
|
containers:
|
||||||
|
- name: test
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: secret-name
|
- name: secret-name
|
||||||
mountPath: /secret
|
mountPath: /secret
|
||||||
|
|||||||
Reference in new issue
Block a user