POST - /kubernetes/item/hpa
This API creates an HPA.
Description
This API creates an HPA.
Input
Type: application/json
Param | Source | Type | Required | Description |
---|---|---|---|---|
 configuration | body | object |  yes |  |
 item | body | object | yes |  |
env | body.item | string | yes | Â |
name | body.item | string | yes | Â |
version | body.item | string | yes | Â |
replica | body | object | yes | Â |
min | body.replica | integer | yes |
|
max | body.replica | integer | yes |
|
metrics | body | array of objects | yes | conditional |
  body.metrics
Conditional anyOf the following objects:
["type", "name", "target", "percentage"]
["type", "name", "target", "value"]
["type", "name", "target", "value"]
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.metrics | enum | Yes | Â |
name | body.metrics | enum | Yes | Â |
taget | body.metrics | enum | Yes |
|
percentage | body.metrics | integer | Yes | "minimum": 1,
"maximum": 100 |
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.metrics | enum | Yes | Â |
name | body.metrics | enum | Yes | Â |
taget | body.metrics | enum | Yes | Â |
value | body.metrics | string | Yes | Â |
Param | Source | Type | Required | Description |
---|---|---|---|---|
type | body.metrics | enum | Yes | Â |
name | body.metrics | enum | Yes | Â |
taget | body.metrics | enum | Yes | Â |
value | body.metrics | string | Yes | Â |