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
69cf2684
Unverified
Commit
69cf2684
authored
Feb 10, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 10, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #73669 from WanLinghao/add_get_case
Add a case to illustrate how to use `kubectl get -o custom-columns`
parents
162b79d2
4a1a2c90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
get.go
pkg/kubectl/cmd/get/get.go
+3
-0
No files found.
pkg/kubectl/cmd/get/get.go
View file @
69cf2684
...
@@ -118,6 +118,9 @@ var (
...
@@ -118,6 +118,9 @@ var (
# Return only the phase value of the specified pod.
# Return only the phase value of the specified pod.
kubectl get -o template pod/web-pod-13je7 --template={{.status.phase}}
kubectl get -o template pod/web-pod-13je7 --template={{.status.phase}}
# List resource information in custom columns.
kubectl get pod test-pod -o custom-columns=CONTAINER:.spec.containers[0].name,IMAGE:.spec.containers[0].image
# List all replication controllers and services together in ps output format.
# List all replication controllers and services together in ps output format.
kubectl get rc,services
kubectl get rc,services
...
...
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