This module deploys Cluster Autoscaler for AWS to your Kubernetes cluster.
provider "kubernetes" {
# your kubernetes provider config
}
provider "aws" {
# your aws provider config
}
data "aws_iam_role" "kubernetes_worker_node" {
name = "kube-clb-main-wg-primary"
}
module "kubernetes_dashboard" {
source = "cookielab/cluster-autoscaler-aws/kubernetes"
version = "0.9.0"
aws_iam_role_for_policy = data.aws_iam_role.kubernetes_worker_node.name
asg_tags = [
"k8s.io/cluster-autoscaler/enabled",
"k8s.io/cluster-autoscaler/${var.kubernetes_cluster_name}",
]
kubernetes_deployment_image_tag = "v1.14.7" # v1.14.x is for kubernetes 1.14.x
}