Skip to content

Commit

Permalink
feat(cluster-autoscaler): allow user to upgrade cluster-autoscaler (#715
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chubchubsancho committed Jun 30, 2022
1 parent 5b57679 commit 3c2ba25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
9 changes: 3 additions & 6 deletions modules/kubernetes-addons/cluster-autoscaler/main.tf
Expand Up @@ -17,8 +17,9 @@ module "helm_addon" {
namespace = local.namespace
description = "Cluster AutoScaler helm Chart deployment configuration."
values = [templatefile("${path.module}/values.yaml", {
aws_region = var.addon_context.aws_region_name,
aws_region = var.addon_context.aws_region_name
eks_cluster_id = var.addon_context.eks_cluster_id
image_tag = "v${var.eks_cluster_version}.0"
})]
},
var.helm_config
Expand All @@ -32,11 +33,7 @@ module "helm_addon" {
{
name = "rbac.serviceAccount.name"
value = local.service_account
},
{
name = "image.tag"
value = "v${var.eks_cluster_version}.0"
},
}
]

irsa_config = {
Expand Down
3 changes: 3 additions & 0 deletions modules/kubernetes-addons/cluster-autoscaler/values.yaml
Expand Up @@ -5,6 +5,9 @@ autoDiscovery:
extraArgs:
aws-use-static-instance-list: true

image:
tag: ${image_tag}

resources:
limits:
cpu: 200m
Expand Down

0 comments on commit 3c2ba25

Please sign in to comment.