k8s resize-hpa
Resize HPA
Description
Resize Horizontal pod autoscaler with given values
Synopsis
k8s resize-hpa
[--site <site>]
[--cluster <cluster>]
[--namespace|-n <namespace>]
<name>
[--min <min>]
[--max <max>]
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
cluster
- (string)
Cluster where this command will be executed
Example: --cluster "in-cluster"
Default: in-cluster
Attributes: optional
namespace
- (string)
Kubernetes namespace
Example: --namespace "namespace-1"
Default: default
Attributes: optional
name
- (string)
Name of HPA to be resized
Example: "name-1"
Default: _None_
Attributes: required
min
- (int)
Minimum value of auto scaling
Example: --min 1
Default: 1
Attributes: optional
max
- (int)
Maximum value of auto scaling
Example: --max 1
Default: 1
Attributes: optional
Examples
Input:
Output:Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "update" |
Service Type | "k8s" |
Service Instance | cluster |
Namespace | namespace |
Object Type | "hpa" |
Object ID | name |
Please see Access Control for details.