command
module
Version:
v0.0.0-...-91f35d4
Opens a new window with list of versions in this module.
Published: May 22, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Kubernetes custom HPA using prometheus
Kubernetes HPA using prometheus queries
Configuration
-
Yaml config file used to scale applications, mounted at /config/config.yaml
- name: hello-world
maxReplicas: 5
minReplicas: 1
query: up
scaleFactor: 2```
Environment Variables
EnvVar |
Description |
Default |
PROM_ENDPOINT |
Prometheus endoint to query |
prometheus:9090 |
CHECK_INTERVAL |
how often to query prometheus (in seconds) |
120 |
Build
docker build . -t k8s-custom-hpa
Run the autoscaler
Needs to be run within a kubernetes cluster
helm install -n autoscaler helm/k8s-custom-hpa
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.