mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Updated kubectl help messages.
Updated kubectl help messages: added info about hpa. Fixes #17357.
This commit is contained in:
@@ -60,7 +60,7 @@ If --resource-version is specified, then updates will use this resource version,
|
||||
Possible resources include (case insensitive): pods (po), services (svc),
|
||||
replicationcontrollers (rc), nodes (no), events (ev), componentstatuses (cs),
|
||||
limitranges (limits), persistentvolumes (pv), persistentvolumeclaims (pvc),
|
||||
resourcequotas (quota) or secrets.`
|
||||
horizontalpodautoscalers (hpa), resourcequotas (quota) or secrets.`
|
||||
annotate_example = `# Update pod 'foo' with the annotation 'description' and the value 'my frontend'.
|
||||
# If the same annotation is set multiple times, only the last value will be applied
|
||||
$ kubectl annotate pods foo description='my frontend'
|
||||
|
||||
@@ -125,6 +125,7 @@ __custom_func() {
|
||||
* componentstatuses (aka 'cs')
|
||||
* endpoints (aka 'ep')
|
||||
* quota
|
||||
* horizontalpodautoscalers (aka 'hpa')
|
||||
`
|
||||
)
|
||||
|
||||
|
||||
@@ -52,7 +52,8 @@ exists, it will output details for every resource that has a name prefixed with
|
||||
Possible resource types include (case insensitive): pods (po), services (svc),
|
||||
replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits),
|
||||
persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota),
|
||||
namespaces (ns), serviceaccounts, endpoints (ep) or secrets.`
|
||||
namespaces (ns), serviceaccounts, horizontalpodautoscalers (hpa),
|
||||
endpoints (ep) or secrets.`
|
||||
describe_example = `# Describe a node
|
||||
$ kubectl describe nodes kubernetes-minion-emt8.c.myproject.internal
|
||||
|
||||
|
||||
@@ -38,7 +38,8 @@ $ kubectl explain pods.spec.containers`
|
||||
Possible resource types include: pods (po), services (svc),
|
||||
replicationcontrollers (rc), nodes (no), events (ev), componentstatuses (cs),
|
||||
limitranges (limits), persistentvolumes (pv), persistentvolumeclaims (pvc),
|
||||
resourcequotas (quota), namespaces (ns) or endpoints (ep).`
|
||||
resourcequotas (quota), namespaces (ns), horizontalpodautoscalers (hpa)
|
||||
or endpoints (ep).`
|
||||
)
|
||||
|
||||
// NewCmdExplain returns a cobra command for swagger docs
|
||||
|
||||
@@ -41,7 +41,8 @@ const (
|
||||
Possible resource types include (case insensitive): pods (po), services (svc),
|
||||
replicationcontrollers (rc), nodes (no), events (ev), componentstatuses (cs),
|
||||
limitranges (limits), persistentvolumes (pv), persistentvolumeclaims (pvc),
|
||||
resourcequotas (quota), namespaces (ns), endpoints (ep), serviceaccounts or secrets.
|
||||
resourcequotas (quota), namespaces (ns), endpoints (ep),
|
||||
horizontalpodautoscalers (hpa), serviceaccounts or secrets.
|
||||
|
||||
By specifying the output as 'template' and providing a Go template as the value
|
||||
of the --template flag, you can filter the attributes of the fetched resource(s).`
|
||||
|
||||
Reference in New Issue
Block a user