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
88d91067
Commit
88d91067
authored
Nov 11, 2015
by
Janet Kuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add help text for rollback in kubectl rolling-update
parent
0ee52eb0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
kubectl-rolling-update.1
docs/man/man1/kubectl-rolling-update.1
+4
-1
kubectl_rolling-update.md
docs/user-guide/kubectl/kubectl_rolling-update.md
+5
-2
rollingupdate.go
pkg/kubectl/cmd/rollingupdate.go
+4
-1
No files found.
docs/man/man1/kubectl-rolling-update.1
View file @
88d91067
...
...
@@ -199,9 +199,12 @@ $ cat frontend\-v2.json | kubectl rolling\-update frontend\-v1 \-f \-
# name of the replication controller.
$ kubectl rolling\-update frontend\-v1 frontend\-v2 \-\-image=image:v2
# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name
.
$ kubectl rolling\-update frontend \-\-image=image:v2
# Abort and reverse an existing rollout in progress (from frontend\-v1 to frontend\-v2).
$ kubectl rolling\-update frontend\-v1 frontend\-v2 \-\-rollback
.fi
.RE
...
...
docs/user-guide/kubectl/kubectl_rolling-update.md
View file @
88d91067
...
...
@@ -61,9 +61,12 @@ $ cat frontend-v2.json | kubectl rolling-update frontend-v1 -f -
# name of the replication controller.
$ kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2
# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name
.
$ kubectl rolling-update frontend --image=image:v2
# Abort and reverse an existing rollout in progress (from frontend-v1 to frontend-v2).
$ kubectl rolling-update frontend-v1 frontend-v2 --rollback
```
### Options
...
...
@@ -119,7 +122,7 @@ $ kubectl rolling-update frontend --image=image:v2
*
[
kubectl
](
kubectl.md
)
- kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra on 1
9-Oct
-2015
###### Auto generated by spf13/cobra on 1
1-Nov
-2015
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
...
...
pkg/kubectl/cmd/rollingupdate.go
View file @
88d91067
...
...
@@ -58,8 +58,11 @@ $ cat frontend-v2.json | kubectl rolling-update frontend-v1 -f -
# name of the replication controller.
$ kubectl rolling-update frontend-v1 frontend-v2 --image=image:v2
# Update the pods of frontend by just changing the image, and keeping the old name
# Update the pods of frontend by just changing the image, and keeping the old name
.
$ kubectl rolling-update frontend --image=image:v2
# Abort and reverse an existing rollout in progress (from frontend-v1 to frontend-v2).
$ kubectl rolling-update frontend-v1 frontend-v2 --rollback
`
)
...
...
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