mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Update kubectl describe help to document prefix matching behavior
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
.SH NAME
|
||||
.PP
|
||||
kubectl describe \- Show details of a specific resource
|
||||
kubectl describe \- Show details of a specific resource or group of resources
|
||||
|
||||
|
||||
.SH SYNOPSIS
|
||||
@@ -13,11 +13,18 @@ kubectl describe \- Show details of a specific resource
|
||||
|
||||
.SH DESCRIPTION
|
||||
.PP
|
||||
Show details of a specific resource.
|
||||
Show details of a specific resource or group of resources.
|
||||
|
||||
.PP
|
||||
This command joins many API calls together to form a detailed description of a
|
||||
given resource.
|
||||
given resource or group of resources.
|
||||
|
||||
.PP
|
||||
$ kubectl describe RESOURCE NAME\_PREFIX
|
||||
|
||||
.PP
|
||||
will first check for an exact match on RESOURCE and NAME\_PREFIX. If no such resource
|
||||
exists, it will output details for every resource that has a name prefixed with NAME\_PREFIX
|
||||
|
||||
|
||||
.SH OPTIONS
|
||||
@@ -142,6 +149,10 @@ $ kubectl describe pods/nginx
|
||||
// Describe pods by label name=myLabel
|
||||
$ kubectl describe po \-l name=myLabel
|
||||
|
||||
// Describe all pods managed by the 'frontend' replication controller (rc\-created pods
|
||||
// get the name of the rc as a prefix in the pod the name).
|
||||
$ kubectl describe pods frontend
|
||||
|
||||
.fi
|
||||
.RE
|
||||
|
||||
|
Reference in New Issue
Block a user