Autoscaling
API Version Comparison Table
Kubernetes Version
Autoscaling API Version
Supported Metrics
Examples
# This segment demonstrates how to create a pod and service
$ kubectl run php-apache --image=k8s.gcr.io/hpa-example --requests=cpu=200m --expose --port=80
service "php-apache" created
deployment "php-apache" created
# Here, we create the autoscaler
$ kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10
deployment "php-apache" autoscaled
...
Custom Metrics
HPA Best Practices
最后更新于