Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d99f49d2
Unverified
Commit
d99f49d2
authored
Apr 02, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 02, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76021 from soltysh/fix_create_docs
Fix create secret generic paths examples
parents
1495fb73
0341fa24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
create_secret.go
pkg/kubectl/cmd/create/create_secret.go
+2
-2
No files found.
pkg/kubectl/cmd/create/create_secret.go
View file @
d99f49d2
...
...
@@ -61,13 +61,13 @@ var (
kubectl create secret generic my-secret --from-file=path/to/bar
# Create a new secret named my-secret with specified keys instead of names on disk
kubectl create secret generic my-secret --from-file=ssh-privatekey=
~/.ssh/id_rsa --from-file=ssh-publickey=~/.ssh
/id_rsa.pub
kubectl create secret generic my-secret --from-file=ssh-privatekey=
path/to/id_rsa --from-file=ssh-publickey=path/to
/id_rsa.pub
# Create a new secret named my-secret with key1=supersecret and key2=topsecret
kubectl create secret generic my-secret --from-literal=key1=supersecret --from-literal=key2=topsecret
# Create a new secret named my-secret using a combination of a file and a literal
kubectl create secret generic my-secret --from-file=ssh-privatekey=
~/.ssh
/id_rsa --from-literal=passphrase=topsecret
kubectl create secret generic my-secret --from-file=ssh-privatekey=
path/to
/id_rsa --from-literal=passphrase=topsecret
# Create a new secret named my-secret from an env file
kubectl create secret generic my-secret --from-env-file=path/to/bar.env`
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment