mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
update commented examples just remove $
This commit is contained in:
@@ -189,13 +189,13 @@ symlinks, devices, pipes, etc).
|
||||
|
||||
.nf
|
||||
# Create a new configmap named my\-config with keys for each file in folder bar
|
||||
$ kubectl create configmap generic my\-config \-\-from\-file=path/to/bar
|
||||
kubectl create configmap generic my\-config \-\-from\-file=path/to/bar
|
||||
|
||||
# Create a new configmap named my\-config with specified keys instead of names on disk
|
||||
$ kubectl create configmap generic my\-config \-\-from\-file=ssh\-privatekey=\~/.ssh/id\_rsa \-\-from\-file=ssh\-publickey=\~/.ssh/id\_rsa.pub
|
||||
kubectl create configmap generic my\-config \-\-from\-file=ssh\-privatekey=\~/.ssh/id\_rsa \-\-from\-file=ssh\-publickey=\~/.ssh/id\_rsa.pub
|
||||
|
||||
# Create a new configMap named my\-config with key1=config1 and key2=config2
|
||||
$ kubectl create configmap generic my\-config \-\-from\-literal=key1=config1 \-\-from\-literal=key2=config2
|
||||
kubectl create configmap generic my\-config \-\-from\-literal=key1=config1 \-\-from\-literal=key2=config2
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
||||
Reference in New Issue
Block a user