@rob_rich

Horizontal Autoscaling with Kubernetes


by Rob Richardson

  @rob_rich

https://robrich.org/

About Me

Rob Richardson

Rob Richardson is a software craftsman building web properties in ASP.NET and Node, React and Vue. He's a frequent speaker at conferences, user groups, and community events, and a diligent teacher and student of high quality software development. You can find this and other talks on https://robrich.org/presentations and follow him on twitter at @rob_rich.

Scaling

How did we get here?

Scaling in Kubernetes

Pod Scaling

Why isn't this automatic?

It depends on your workload.

the k8s autoscaler

built-in metrics

Demo

Autoscale by CPU

Other metrics

Autoscaling

Basic scaling in Kubernetes https://learnk8s.io/autoscaling-apps-kubernetes

Autoscaling

add Metrics Registry https://learnk8s.io/autoscaling-apps-kubernetes

Autoscaling

Metrics Registry has 3 APIs https://learnk8s.io/autoscaling-apps-kubernetes

Autoscaling

Where API data comes from https://learnk8s.io/autoscaling-apps-kubernetes

Prometheus Metrics

Autoscaling

Where API data comes from https://learnk8s.io/autoscaling-apps-kubernetes

Prometheus Metrics

Other Metrics

Scaling Best Practices

Horizontal Autoscaling