mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 20:00:07 +00:00
Merge pull request #136703 from yosri-brh/fix-configmap-example
Fix kubectl create configmap example
This commit is contained in:
@@ -64,11 +64,8 @@ var (
|
||||
# Create a new config map named my-config with key1=config1 and key2=config2
|
||||
kubectl create configmap my-config --from-literal=key1=config1 --from-literal=key2=config2
|
||||
|
||||
# Create a new config map named my-config from the key=value pairs in the file
|
||||
kubectl create configmap my-config --from-file=path/to/bar
|
||||
|
||||
# Create a new config map named my-config from an env file
|
||||
kubectl create configmap my-config --from-env-file=path/to/foo.env --from-env-file=path/to/bar.env`))
|
||||
# Create a new config map named my-config with key=value pairs from an env file
|
||||
kubectl create configmap my-config --from-env-file=path/to/bar.env`))
|
||||
)
|
||||
|
||||
// ConfigMapOptions holds properties for create configmap sub-command
|
||||
|
||||
Reference in New Issue
Block a user