Skip to content

Hands-on for Kubernetes Horizontal Pod Autoscaler (HPA)

License

Notifications You must be signed in to change notification settings

ryojp/kubernetes-hpa-demo

Repository files navigation

Kubernetes HPA Demo

This repo is composed of two demonstrations.

  1. HPA with CPU metrics
  2. HPA with Istio metrics (requests_per_second, 90%tile request processing duration)

HPA Dashboard

How to create a docker image with multiple platform?

  1. Create a builder
docker buildx create --name armamd
  1. Select the created builder
docker buildx use armamd
  1. Build an image targeting linux/arm64 and linux/amd64
docker buildx build --platform linux/amd64,linux/arm64 -t ryojpn/go-cpu-intensive:latest .

Replace ryojpn with your DockerHub ID.

Optionally, you can add --push option to directly push the built image.