/phpa

kubernetes autoscaler with influx and graphite as metric source

Primary LanguageRubyMIT LicenseMIT

PHPA: poor man's Horizontal Pod Autoscaler

See Horizontal Pod Autoscaler to know more about HPA

This tool takes metrics from our inflxudb and scales a deployment based on those metrics

Deployment

service account (only once)

  • setup phpa-service-account using setup-access.yaml
  • check for service account kubectl get serviceaccount phpa-service-account

deploy

At Clarisights we run phpa as k8s deployment in same cluster as the deployment phpa is targeting.

  1. build docker image docker build -t phpa:latest https://github.com/clarisights/phpa.git
  2. push docker image to your container registry
  3. create config map from file with your phpa config files
  4. mount config map in your phpa cronjob/deployment
  5. deploy

look in examples folder for some example configs and deployment

Contributing

We welcome contributions, here are steps on how to contribute

  1. fork this repo
  2. create a branch and add your features
  3. Send a Pull requests and tag contributors for review

Have questions or problems using PHPA?

  • Create an issues and tag contributors

Other Info