Update content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md
Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
@@ -684,7 +684,8 @@ If the ConfigMap exists, but the referenced key is non-existent the path will be
|
|||||||
#### Optional ConfigMap in environment variables
|
#### Optional ConfigMap in environment variables
|
||||||
|
|
||||||
There might be situations where environment variables are not always required.
|
There might be situations where environment variables are not always required.
|
||||||
These environment variables can be marked as optional in a pod like so:
|
You can mark an environment variables for a container as optional,
|
||||||
|
like this:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
|||||||
Reference in New Issue
Block a user