@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.

Demo

Horizontal Scaling in Kubernetes

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

Other Metrics

Demo

KEDA scaling on API

Scaling Best Practices

Horizontal Autoscaling