OS
Schema Hub

ScaleSpec

ScaleSpec describes the attributes of a scale subresource.

Schema URL
https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/autoscaling.api.k8s.io/ScaleSpec_v1.json
Usage examples
VS Code / yaml-language-server
# yaml-language-server: $schema=https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/autoscaling.api.k8s.io/ScaleSpec_v1.json
kubeconform
kubeconform -schema-location 'https://raw.githubusercontent.com/nlamirault/schema-hub/main/schemas/{{ .Group }}/{{ .ResourceKind }}_{{ .ResourceAPIVersion }}.json' manifest.yaml

Resource Structure

replicasinteger
replicas is the desired number of instances for the scaled object.