API Reference

API Reference

Packages

kubecloudscaler.cloud/v1alpha1

Package v1alpha1 contains API Schema definitions for the k8s v1alpha1 API group

Resource Types

FixedPeriod

Appears in:

FieldDescriptionDefaultValidation
startTime stringPattern: ^\d\{4\}-(0?[1-9]|1[0,1,2])-(0?[1-9]|[12][0-9]|3[01]) ([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]$
endTime stringPattern: ^\d\{4\}-(0?[1-9]|1[0,1,2])-(0?[1-9]|[12][0-9]|3[01]) ([0-1]?[0-9]|2[0-3]):[0-5]?[0-9]:[0-5]?[0-9]$
timezone string
once booleanRun once at StartTime
gracePeriod stringGrace period in seconds for deployments before scaling downPattern: ^\d*s$
reverse booleanReverse the period

Gcp

Gcp is the Schema for the scalers API

FieldDescriptionDefaultValidation
apiVersion stringkubecloudscaler.cloud/v1alpha1
kind stringGcp
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec GcpSpec
status ScalerStatus

GcpSpec

GcpSpec defines the desired state of Scaler

Appears in:

FieldDescriptionDefaultValidation
dryRun booleandry-run mode
periods ScalerPeriod arrayTime period to scale

K8s

Scaler is the Schema for the scalers API

FieldDescriptionDefaultValidation
apiVersion stringkubecloudscaler.cloud/v1alpha1
kind stringK8s
metadata ObjectMetaRefer to Kubernetes API documentation for fields of metadata.
spec K8sSpec
status ScalerStatus

K8sSpec

ScalerSpec defines the desired state of Scaler

Appears in:

FieldDescriptionDefaultValidation
dryRun booleandry-run mode
periods ScalerPeriod arrayTime period to scale
namespaces string arrayResources
Namespaces
excludeNamespaces string arrayExclude namespaces from downscaling
forceExcludeSystemNamespaces booleanForce exclude system namespaces
resources string arrayResources
excludeResources string arrayExclude resources from downscaling
labelSelector LabelSelectorLabels selectors
deploymentTimeAnnotation stringDeployment time annotation
disableEvents booleanDisable events

RecurringPeriod

Appears in:

FieldDescriptionDefaultValidation
days string array
startTime stringPattern: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
endTime stringPattern: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
timezone string
once booleanRun once at StartTime
gracePeriod stringPattern: ^\d*s$
reverse booleanReverse the period

ScalerPeriod

Appears in:

FieldDescriptionDefaultValidation
type stringEnum: [down up]
time TimePeriod
minReplicas integerMinimum replicas
maxReplicas integerMaximum replicas

ScalerStatus

ScalerStatus defines the observed state of Scaler

Appears in:

FieldDescriptionDefaultValidation
currentPeriod ScalerStatusPeriod
comments string

ScalerStatusFailed

Appears in:

FieldDescriptionDefaultValidation
kind string
name string
reason string

ScalerStatusPeriod

Appears in:

FieldDescriptionDefaultValidation
spec RecurringPeriod
specSHA string
success ScalerStatusSuccess array
failed ScalerStatusFailed array

ScalerStatusSuccess

Appears in:

FieldDescriptionDefaultValidation
kind string
name string

TimePeriod

Appears in:

FieldDescriptionDefaultValidation
recurring RecurringPeriod
fixed FixedPeriod