Skip to content

Commit 8377d08

Browse files
authored
Merge pull request #25986 from schollii/master
Clarify binaryData handling by kubectl create and describe
2 parents 739c65c + c398ae4 commit 8377d08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/en/docs/tasks/configure-pod-container/configure-pod-configmap.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ allow.textmode=true
201201
how.nice.to.look=fairlyNice
202202
```
203203

204+
When `kubectl` creates a ConfigMap from inputs that are not ASCII or UTF-8, the tool puts these into the `binaryData` field of the ConfigMap, and not in `data`. Both text and binary data sources can be combined in one ConfigMap.
205+
If you want to view the `binaryData` keys (and their values) in a ConfigMap, you can run `kubectl get configmap -o jsonpath='{.binaryData}' <name>`.
206+
204207
Use the option `--from-env-file` to create a ConfigMap from an env-file, for example:
205208

206209
```shell
@@ -687,4 +690,3 @@ data:
687690

688691
* Follow a real world example of [Configuring Redis using a ConfigMap](/docs/tutorials/configuration/configure-redis-using-configmap/).
689692

690-

0 commit comments

Comments
 (0)