aws-autoscaling-exporter
by Helm
An aws autoscaling exporter Helm chart for Kubernetes
About this chart
Hollowtrees AWS Autoscaling Exporter
AutoscalingExporter Prometheus exporter for AWS auto scaling groups.
tl;dr:
$ helm repo add banzaicloud-incubator http://kubernetes-charts-incubator.banzaicloud.com
$ helm repo update
$ helm install banzaicloud-incubator/aws-autoscaling-exporter
Introduction
This chart bootstraps an AWS Autoscaling exporter deployment on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.8+ with Beta APIs enabled
Installing the Chart
To install the chart with the release name my-release:
$ helm install --name my-release banzaicloud-incubator/aws-autoscaling-exporter
The command deploys AutoscalingExporter on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Uninstalling the Chart
To uninstall/delete the my-release deployment:
$ helm delete my-release
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following tables lists the configurable parameters of the AWS Autoscaling Exporter chart and their default values.
| Parameter | Description | Default |
|---|---|---|
autoscalingExporter.name | Autoscaling Exporter container name | autoscalingExporter |
autoscalingExporter.image | Autoscaling Exporter container image | banzaicloud/aws-autoscaling-exporter:{VERSION} |
autoscalingExporter.replicaCount | Replica Count | 3 |
autoscalingExporter.service.type | Kubernetes service type to expose | ClusterIP |
autoscalingExporter.service.nodePort | Port to bind to for NodePort service type | nil |
autoscalingExporter.service.annotations | Additional annotations to add to service | nil |
autoscalingExporter.imagePullPolicy | Image pull policy. | IfNotPresent |
autoscalingExporter.logLevel | Recommender Log level | info |
autoscalingExporter.appPort | Port to bind to for Recommender service | 8089 |
autoscalingExporter.recommenderUrl | URL of the spot instance recommender | http://localhost:9090 |
autoscalingExporter.metricsPath | Path to metrics endpoint | /metrics |
autoscalingExporter.region | AWS region where the recommender should work. | eu-west-1 |
autoscalingExporter.resources | CPU/Memory resource requests/limits | Memory: 256Mi, CPU: 100m |
Specify each parameter using the --set key=value[,key=value] argument to helm install.
Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:
$ helm install --name my-release -f values.yaml banzaicloud-incubator/aws-autoscaling-exporter
Tip: You can use the default values.yaml
Deploy aws-autoscaling-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aws-autoscaling-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartaws-autoscaling-exporter is pinned at v0.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply