diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-30 12:52:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 12:52:21 +0100 |
commit | 67d5b21f66beb58f9bfe25451e812a741d5c017d (patch) | |
tree | b7e2fc3cba32cb60993d57444e305e18fb782d1c /docs/source | |
parent | e3a7a743c50f7131fde98380b8059c463468c653 (diff) | |
parent | b517f86334c88c96b6875ba586a0577afe23ddfd (diff) | |
download | podman-67d5b21f66beb58f9bfe25451e812a741d5c017d.tar.gz podman-67d5b21f66beb58f9bfe25451e812a741d5c017d.tar.bz2 podman-67d5b21f66beb58f9bfe25451e812a741d5c017d.zip |
Merge pull request #12447 from jakub-dzon/env-config-maps-backport
Support env variables based on ConfigMaps sent in payload
Diffstat (limited to 'docs/source')
-rw-r--r-- | docs/source/markdown/podman-play-kube.1.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-play-kube.1.md b/docs/source/markdown/podman-play-kube.1.md index c170d6495..629f16e24 100644 --- a/docs/source/markdown/podman-play-kube.1.md +++ b/docs/source/markdown/podman-play-kube.1.md @@ -15,6 +15,7 @@ Currently, the supported Kubernetes kinds are: - Pod - Deployment - PersistentVolumeClaim +- ConfigMap `Kubernetes Pods or Deployments` @@ -67,6 +68,40 @@ like: The build will consider `foobar` to be the context directory for the build. If there is an image in local storage called `foobar`, the image will not be built unless the `--build` flag is used. +`Kubernetes ConfigMap` + +Kubernetes ConfigMap can be referred as a source of environment variables in Pods or Deployments. + +For example ConfigMap defined in following YAML: +``` +apiVersion: v1 +kind: ConfigMap +metadata: + name: foo +data: + FOO: bar +``` + +can be referred in a Pod in following way: +``` +apiVersion: v1 +kind: Pod +metadata: +... +spec: + containers: + - command: + - top + name: container-1 + image: foobar + envFrom: + - configMapRef: + name: foo + optional: false +``` + +and as a result environment variable `FOO` will be set to `bar` for container `container-1`. + ## OPTIONS #### **--authfile**=*path* |