Fork me on GitHub

Module autoscaling/v1

@pulumi/kubernetes > autoscaling > v1

Index

types/input.ts types/output.ts

function isCrossVersionObjectReference

isCrossVersionObjectReference(o: any): boolean

function isHorizontalPodAutoscaler

isHorizontalPodAutoscaler(o: any): boolean

function isHorizontalPodAutoscalerList

isHorizontalPodAutoscalerList(o: any): boolean

function isScale

isScale(o: any): boolean

interface CrossVersionObjectReference

CrossVersionObjectReference contains enough information to let you identify the referred resource.

property apiVersion

apiVersion: string;

API version of the referent

property kind

kind: string;

Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds”

property name

name: string;

Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names

interface HorizontalPodAutoscaler

configuration of a horizontal pod autoscaler.

property apiVersion

apiVersion: string;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

property kind

kind: string;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

metadata: ObjectMeta;

Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

property spec

spec: HorizontalPodAutoscalerSpec;

behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.

property status

status: HorizontalPodAutoscalerStatus;

current information about the autoscaler.

interface HorizontalPodAutoscalerList

list of horizontal pod autoscaler objects.

property apiVersion

apiVersion: string;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

property items

items: HorizontalPodAutoscaler[];

list of horizontal pod autoscaler objects.

property kind

kind: string;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

metadata: ListMeta;

Standard list metadata.

interface HorizontalPodAutoscalerSpec

specification of a horizontal pod autoscaler.

property maxReplicas

maxReplicas: number;

upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.

property minReplicas

minReplicas: number;

lower limit for the number of pods that can be set by the autoscaler, default 1.

property scaleTargetRef

scaleTargetRef: CrossVersionObjectReference;

reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.

property targetCPUUtilizationPercentage

targetCPUUtilizationPercentage: number;

target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.

interface HorizontalPodAutoscalerStatus

current status of a horizontal pod autoscaler

property currentCPUUtilizationPercentage

currentCPUUtilizationPercentage: number;

current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.

property currentReplicas

currentReplicas: number;

current number of replicas of pods managed by this autoscaler.

property desiredReplicas

desiredReplicas: number;

desired number of replicas of pods managed by this autoscaler.

property lastScaleTime

lastScaleTime: string;

last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.

property observedGeneration

observedGeneration: number;

most recent generation observed by this autoscaler.

interface Scale

Scale represents a scaling request for a resource.

property apiVersion

apiVersion: string;

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

property kind

kind: string;

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

property metadata

metadata: ObjectMeta;

Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.

property spec

spec: ScaleSpec;

defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.

property status

status: ScaleStatus;

current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.

interface ScaleSpec

ScaleSpec describes the attributes of a scale subresource.

property replicas

replicas: number;

desired number of instances for the scaled object.

interface ScaleStatus

ScaleStatus represents the current status of a scale subresource.

property replicas

replicas: number;

actual number of observed instances of the scaled object.

property selector

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