Skip to content

Commit 0e3e953

Browse files
author
Tim Bannister
committed
Add note about valid characters for kubectl create from directory
1 parent 39b9fcd commit 0e3e953

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,19 @@ about a ConfigMap.
6262

6363
You can use `kubectl create configmap` to create a ConfigMap from multiple files in the same
6464
directory. When you are creating a ConfigMap based on a directory, kubectl identifies files
65-
whose basename is a valid key in the directory and packages each of those files into the new
65+
whose filename is a valid key in the directory and packages each of those files into the new
6666
ConfigMap. Any directory entries except regular files are ignored (for example: subdirectories,
6767
symlinks, devices, pipes, and more).
6868

69+
70+
{{< note >}}
71+
Each filename being used for ConfigMap creation must consist of only acceptable characters, which are: letters (`A` to `Z` and `a` to z`), digits (`0` to `9`), '-', '_', or '.'.
72+
If you use `kubectl create configmap` with a directory where any of the file names contains an unacceptable character, the `kubectl` command may fail.
73+
74+
The `kubectl` command does not print an error when it encounters an invalid filename.
75+
{{< /note >}}
76+
77+
6978
Create the local directory:
7079

7180
```shell

0 commit comments

Comments
 (0)