File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,13 +61,13 @@ var (
61
61
kubectl create secret generic my-secret --from-file=path/to/bar
62
62
63
63
# Create a new secret named my-secret with specified keys instead of names on disk
64
- kubectl create secret generic my-secret --from-file=ssh-privatekey=~/.ssh /id_rsa --from-file=ssh-publickey=~/.ssh /id_rsa.pub
64
+ kubectl create secret generic my-secret --from-file=ssh-privatekey=path/to /id_rsa --from-file=ssh-publickey=path/to /id_rsa.pub
65
65
66
66
# Create a new secret named my-secret with key1=supersecret and key2=topsecret
67
67
kubectl create secret generic my-secret --from-literal=key1=supersecret --from-literal=key2=topsecret
68
68
69
69
# Create a new secret named my-secret using a combination of a file and a literal
70
- kubectl create secret generic my-secret --from-file=ssh-privatekey=~/.ssh /id_rsa --from-literal=passphrase=topsecret
70
+ kubectl create secret generic my-secret --from-file=ssh-privatekey=path/to /id_rsa --from-literal=passphrase=topsecret
71
71
72
72
# Create a new secret named my-secret from an env file
73
73
kubectl create secret generic my-secret --from-env-file=path/to/bar.env` ))
You can’t perform that action at this time.
0 commit comments