Scale

Scale

apiVersion: autoscaling/v1
import "k8s.io/api/autoscaling/v1"

Scale

Scale represents a scaling request for a resource.

ScaleSpec

ScaleSpec describes the attributes of a scale subresource.

  • replicas (int32)
    desired number of instances for the scaled object.

ScaleStatus

ScaleStatus represents the current status of a scale subresource.

  • replicas (int32), required
    actual number of observed instances of the scaled object.
  • selector (string)
    label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors

Operations

get read scale of the specified ReplicationController

HTTP Request

GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale
  • {namespace} (string), required
    namespace
  • ?pretty (string)
    pretty
Response

200 (Scale): OK
401: Unauthorized

get read scale of the specified Deployment

HTTP Request

GET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale
  • {namespace} (string), required
    namespace
  • ?pretty (string)
    pretty
Response

200 (Scale): OK
401: Unauthorized

get read scale of the specified ReplicaSet

HTTP Request

GET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale
  • {namespace} (string), required
    namespace
  • ?pretty (string)
    pretty
Response

200 (Scale): OK
401: Unauthorized

get read scale of the specified StatefulSet

HTTP Request

GET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale
  • {namespace} (string), required
    namespace
  • ?pretty (string)
    pretty
Response

200 (Scale): OK
401: Unauthorized

update replace scale of the specified ReplicationController

HTTP Request

PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Scale), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
201 (Scale): Created
401: Unauthorized

update replace scale of the specified Deployment

HTTP Request

PUT /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Scale), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
201 (Scale): Created
401: Unauthorized

update replace scale of the specified ReplicaSet

HTTP Request

PUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Scale), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
201 (Scale): Created
401: Unauthorized

update replace scale of the specified StatefulSet

HTTP Request

PUT /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Scale), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
201 (Scale): Created
401: Unauthorized

patch partially update scale of the specified ReplicationController

HTTP Request

PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Patch), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?force (boolean)
    force

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
401: Unauthorized

patch partially update scale of the specified Deployment

HTTP Request

PATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Patch), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?force (boolean)
    force

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
401: Unauthorized

patch partially update scale of the specified ReplicaSet

HTTP Request

PATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Patch), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?force (boolean)
    force

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
401: Unauthorized

patch partially update scale of the specified StatefulSet

HTTP Request

PATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale

Parameters
  • {name} (string), required
    name of the Scale

  • {namespace} (string), required
    namespace

  • body (Patch), required

  • ?dryRun (string)
    dryRun

  • ?fieldManager (string)
    fieldManager

  • ?force (boolean)
    force

  • ?pretty (string)
    pretty

Response

200 (Scale): OK
401: Unauthorized