{"id":20975186,"url":"https://github.com/jhandguy/horizontal-pod-autoscaler","last_synced_at":"2026-04-21T21:02:39.005Z","repository":{"id":144696913,"uuid":"462001031","full_name":"jhandguy/horizontal-pod-autoscaler","owner":"jhandguy","description":"A sample project showcasing various Horizontal Pod Autoscaler implementations.","archived":false,"fork":false,"pushed_at":"2023-12-01T16:07:40.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T11:28:00.299Z","etag":null,"topics":["helm","horizontal-pod-autoscaler","ingress-nginx","k6","kind","kubernetes","metrics-server","prometheus","prometheus-adapter"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhandguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-21T19:21:56.000Z","updated_at":"2025-10-03T09:13:39.000Z","dependencies_parsed_at":"2024-11-19T04:55:57.540Z","dependency_job_id":null,"html_url":"https://github.com/jhandguy/horizontal-pod-autoscaler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jhandguy/horizontal-pod-autoscaler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhandguy%2Fhorizontal-pod-autoscaler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhandguy%2Fhorizontal-pod-autoscaler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhandguy%2Fhorizontal-pod-autoscaler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhandguy%2Fhorizontal-pod-autoscaler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhandguy","download_url":"https://codeload.github.com/jhandguy/horizontal-pod-autoscaler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhandguy%2Fhorizontal-pod-autoscaler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32110137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["helm","horizontal-pod-autoscaler","ingress-nginx","k6","kind","kubernetes","metrics-server","prometheus","prometheus-adapter"],"created_at":"2024-11-19T04:40:32.455Z","updated_at":"2026-04-21T21:02:38.989Z","avatar_url":"https://github.com/jhandguy.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Horizontal Pod Autoscaler\n\nA sample project showcasing various Horizontal Pod Autoscaler implementations.\n\n## Blog Posts\n\n- [Horizontal Pod Autoscaler in Kubernetes (Part 1) — Simple Autoscaling using Metrics Server](https://jhandguy.github.io/posts/simple-horizontal-autoscaling/)\n- [Horizontal Pod Autoscaler in Kubernetes (Part 2) — Advanced Autoscaling using Prometheus Adapter](https://jhandguy.github.io/posts/advanced-horizontal-autoscaling/)\n\n## Installing\n\n### Autoscaling Golang service using Metrics Server\n\n```shell\nkind create cluster --image kindest/node:v1.27.3 --config=kind/cluster.yaml\n\nhelm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx\nhelm install ingress-nginx/ingress-nginx --name-template ingress-nginx --create-namespace -n ingress-nginx --values kind/ingress-nginx-values.yaml --version 4.8.3 --wait\n\nhelm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server\nhelm install metrics-server/metrics-server --name-template metrics-server --create-namespace -n metrics-server --values kind/metrics-server-values.yaml --version 3.11.0 --wait\n\nhelm install golang-sample-app/helm-chart --name-template sample-app --create-namespace -n sample-app --wait\n```\n\n### Autoscaling Kotlin service using Metrics Server\n\n```shell\nkind create cluster --image kindest/node:v1.27.3 --config=kind/cluster.yaml\n\nhelm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx\nhelm install ingress-nginx/ingress-nginx --name-template ingress-nginx --create-namespace -n ingress-nginx --values kind/ingress-nginx-values.yaml --version 4.8.3 --wait\n\nhelm repo add metrics-server https://kubernetes-sigs.github.io/metrics-server\nhelm install metrics-server/metrics-server --name-template metrics-server --create-namespace -n metrics-server --values kind/metrics-server-values.yaml --version 3.11.0 --wait\n\nhelm install kotlin-sample-app/helm-chart --name-template sample-app --create-namespace -n sample-app --wait\n```\n\n### Autoscaling Golang service using Prometheus Adapter\n\n```shell\nkind create cluster --image kindest/node:v1.27.3 --config=kind/cluster.yaml\n\nhelm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx\nhelm install ingress-nginx/ingress-nginx --name-template ingress-nginx --create-namespace -n ingress-nginx --values kind/ingress-nginx-values.yaml --version 4.8.3 --wait\n\nhelm repo add prometheus-community https://prometheus-community.github.io/helm-charts\nhelm install prometheus-community/kube-prometheus-stack --name-template prometheus --create-namespace -n prometheus --version 54.2.2 --wait\nhelm install prometheus-community/prometheus-adapter --name-template prometheus-adapter --create-namespace -n prometheus-adapter --values kind/prometheus-adapter-values.yaml --version 4.9.0 --wait\n\nhelm install golang-sample-app/helm-chart --name-template sample-app --create-namespace -n sample-app --set prometheus.enabled=true --wait\n```\n\n## Smoke Testing\n\n```shell\ncurl localhost/success -H \"Host: sample.app\" -v\ncurl localhost/error -H \"Host: sample.app\" -v\n```\n\n## Load Testing\n\n```shell\nk6 run k6/script.js\n```\n\n## Uninstalling\n\n```shell\nkind delete cluster\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhandguy%2Fhorizontal-pod-autoscaler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhandguy%2Fhorizontal-pod-autoscaler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhandguy%2Fhorizontal-pod-autoscaler/lists"}