KUBERNETES(1) kubernetes KUBERNETES(1) (NAME) kubectl-autoscale - deployment replica set stateful set replication controller (SYNOPSIS) kubectl autoscale [OPTIONS] (DESCRIPTION) (autoscaler) . API autoscaling/v2 API autoscaling/v1 . deployment replica set stateful set replication controller . . (OPTIONS) --allow-missing-template-keys=true true (map key) . golang jsonpath . --cpu="" CPU . ( "70%" CPU ) . ( "500m" ) . ( "500" "500m" ). --cpu-percent=-1 CPU ( CPU ) . . --dry-run="none" "none" "server" "client" . client . server . --field-manager="kubectl-autoscale" . -f, --filename=[] URL . -k, --kustomize="" kustomization. -f -R . --max=-1 . . --memory="" . ( "60%" ) . ( "200Mi" "1Gi" ) . ( "200" "200Mi" ). --min=-1 . . --name="" . . -o, --output="" . : (json, yaml, kyaml, name, go-template, go-template- file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath- file). --record=false kubectl . false . true . . -R, --recursive=false -f --filename. . --save-config=false true . kubectl apply . --show-managed-fields=false true managedFields JSON YAML . --template="" -o=go-template -o=go-template-file. golang [http://golang.org/pkg/text/template/#pkg-overview]. (OPTIONS INHERITED FROM PARENT COMMANDS) --as="" (impersonate) . (service account) namespace . --as-group=[] . --as-uid="" UID . --as-user-extra=[] . --cache-dir="/home/username/.kube/cache" --certificate-authority="" (certificate authority) --client-certificate="" TLS --client-key="" TLS --cluster="" kubeconfig --context="" kubeconfig --disable-compression=false true --insecure-skip-tls-verify=false true . HTTPS --kubeconfig="" kubeconfig CLI. --kuberc="" kuberc (preferences). export feature gate KUBECTL_KUBERC=false KUBERC=off . --match-server-version=false -n, --namespace="" namespace CLI --password="" (basic authentication) API --profile="none" . (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) --profile-output="profile.pprof" --request-timeout="0" . ( 1s 2m 3h). ( timeout). -s, --server="" Kubernetes API --tls-server-name="" . hostname --token="" Bearer API --user="" kubeconfig --username="" API --version=false --version --version=raw --version=vX.Y.Z... --warnings-as-errors=false (EXAMPLES) # deployment "foo" CPU kubectl autoscale deployment foo --min=2 --max=10 # replication controller "foo" CPU 80% kubectl autoscale rc foo --max=5 --cpu=80% # deployment "bar" CPU 500m 200Mi kubectl autoscale deployment bar --min=3 --max=6 --cpu=500m --memory=200Mi # deployment "bar" CPU 60% 70% kubectl autoscale deployment bar --min=3 --max=6 --cpu=60% --memory=70% (SEE ALSO) kubectl(1) (HISTORY) Eric Paris (eparis at redhat dot com) kubernetes ! Eric Paris Jan 2015 KUBERNETES(1)