Terraform module to deploy the kubernetes cluster autoscaler on kubernetes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Christophe van de Kerchove 8fac880a6d
feat: Add possibility to pass on static env vars
2 months ago
examples feat: Add possibility to pass on static env vars 2 months ago
.gitignore Initial commit 4 months ago
.pre-commit-config.yaml Initial commit 4 months ago
CHANGELOG.md feat: Add possibility to pass on static env vars 2 months ago
Jenkinsfile feat: initial release 3 months ago
LICENSE feat: initial release 3 months ago
README.md feat: Add possibility to pass on static env vars 2 months ago
main.tf feat: Add possibility to pass on static env vars 2 months ago
outputs.tf feat: initial release 3 months ago
variables.tf feat: Add possibility to pass on static env vars 2 months ago
versions.tf feat: initial release 3 months ago

README.md

terraform-module-kubernetes-cluster-autoscaler

Terraform module to deploy the kubernetes cluster autoscaler on kubernetes.

Usage

This module doesn't configure the autoscaler for a particular cloud provider. Please refer to the [https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler](official documentation) to understand how to use this module.

Requirements

Name Version
terraform >= 0.12.0
kubernetes >= 1.10.0

Providers

Name Version
kubernetes >= 1.10.0
random n/a

Inputs

Name Description Type Default Required
annotations Map of annotations to apply on all kubernetes resources. map {} no
arguments List of arguments to pass to the application. More information: https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler list(string) n/a yes
ca_certificates_path Absolute path of the ca-certificates.crt or ca-bundle.crt on the host machine. string "/etc/ssl/certs/ca-certificates.crt" no
cluster_role_annotations Map of annotations to apply on the cluster role. map {} no
cluster_role_binding_annotations Map of annotations to apply on the cluster role binding. map {} no
cluster_role_binding_labels Map of labels to apply on the cluster role binding. map {} no
cluster_role_binding_name Name of the cluster role binding that is created. string "cluster-autoscaler" no
cluster_role_labels Map of labels to apply on the cluster role. map {} no
cluster_role_name Name of the cluster role that is created. string "cluster-autoscaler" no
command List of commands to pass to the container. list
[
“./cluster-autoscaler"
]
no
deployment_annotations Map of annotations that will be applied on the annotation. map {} no
deployment_labels Map of labels that will be applied on the deployment. map {} no
deployment_name Name of the deployment that is created. string "cluster-autoscaler" no
deployment_template_annotations Map of annotations that will be applied on the deployment template. map {} no
deployment_template_labels Map of labels that will be applied on the deployment template. map {} no
enabled Whether or not the module is enabled. bool true no
envs Map of string representing environment variables defined in the application container. map(string) {} no
image Docker image to use for the cluster-autoscaler. string "k8s.gcr.io/cluster-autoscaler" no
image_version Docker image tag to use for the cluster-autoscaler. string n/a yes
labels Map of labels to apply on all kubernetes resources. map {} no
namespace Name of the namespace in which to deploy the module. string "kube-system" no
role_annotations Map of annotations to apply on the role. map {} no
role_binding_annotations Map of annotations to apply on the role binding. map {} no
role_binding_labels Map of labels to apply on the role binding. map {} no
role_binding_name Name of the role bindingthat is created. string "cluster-autoscaler" no
role_labels Map of labels to apply on the role. map {} no
role_name Name of the role that is created. string "cluster-autoscaler" no
service_account_annotations Map of annotations to apply on the service account. map {} no
service_account_labels Map of labels to apply on the service account. map {} no
service_account_name Name of the service account that is created. string "cluster-autoscaler" no

Outputs

Name Description
cluster_role n/a
cluster_role_binding n/a
deployment n/a
eviction_annotation_key Annotation key to use that can be set on a kubernetes resource to avoid the pod from being evicted due to autoscaling.
role n/a
role_binding n/a
service_account n/a

Versioning

This repository follows Semantic Versioning 2.0.0

Git Hooks

This repository uses pre-commit hooks.