Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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

"minimum": 1

max

body.replica

integer

yes

"minimum": 1

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

 ["Resource"]

name

body.metrics

enum

Yes

 ["cpu", "memory"]

taget

body.metrics

enum

Yes

["AverageValue", "Utilization"]

percentage

body.metrics

integer

Yes

"minimum": 1,
"maximum": 100

Param

Source

Type

Required

Description

type

body.metrics

enum

Yes

  ["Pods"]

name

body.metrics

enum

Yes

 ["packets-per-second"]

taget

body.metrics

enum

Yes

 ["AverageValue"]

value

body.metrics

string

Yes

Param

Source

Type

Required

Description

type

body.metrics

enum

Yes

  ["Object"]

name

body.metrics

enum

Yes

 ["requests-per-second"]

taget

body.metrics

enum

Yes

 ["AverageValue", "Value"]

value

body.metrics

string

Yes

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.