kubectl-{api-resources, autoscale}: add pages (#17758)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
Anand
2025-08-23 16:18:07 +05:30
committed by GitHub
parent 5e53b78cea
commit 9d4e368921
2 changed files with 40 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# kubectl api-resources
> Print the supported API resources on the server.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#api-resources>.
- Print the supported API resources:
`kubectl api-resources`
- Print the supported API resources with more information:
`kubectl api-resources {{[-o|--output]}} wide`
- Print the supported API resources sorted by a column:
`kubectl api-resources --sort-by {{name}}`
- Print the supported namespaced resources:
`kubectl api-resources --namespaced`
- Print the supported non-namespaced resources:
`kubectl api-resources --namespaced=false`
- Print the supported API resources with a specific API group:
`kubectl api-resources --api-group={{api_group}}`
+12
View File
@@ -0,0 +1,12 @@
# kubectl autoscale
> Create an autoscaler to intelligently scale pod count based on kubernetes cluster demands.
> More information: <https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#autoscale>.
- Auto scale a deployment with no target CPU utilization specified:
`kubectl autoscale {{[deploy|deployment]}} {{deployment_name}} --min={{min_replicas}} --max={{max_replicas}}`
- Auto scale a deployment with target CPU utilization:
`kubectl autoscale {{[deploy|deployment]}} {{deployment_name}} --max={{max_replicas}} --cpu-percent={{target_cpu}}`