Commit 2d647e2c authored by Nick White's avatar Nick White

Merge branch 'nicky/cluster_autoscaler_version_variable' into 'master'

Moved image version to variable

See merge request !1
parents b6a6ad79 d3150011
...@@ -50,7 +50,7 @@ resource "kubernetes_deployment" "aws_cluster_autoscaler_deployment" { ...@@ -50,7 +50,7 @@ resource "kubernetes_deployment" "aws_cluster_autoscaler_deployment" {
} }
container { container {
image = "k8s.gcr.io/cluster-autoscaler:v1.3.6" image = "${var.cluster_autoscaler_image_region}.gcr.io/k8s-artifacts-prod/autoscaling/cluster-autoscaler:v${var.cluster_autoscaler_version}"
name = "cluster-autoscaler-container" name = "cluster-autoscaler-container"
image_pull_policy = "IfNotPresent" image_pull_policy = "IfNotPresent"
args = ["./cluster-autoscaler", "--cloud-provider=aws", "--node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled", "--skip-nodes-with-local-storage=false", "--stderrthreshold=info", "--expander=least-waste", "--v=4"] args = ["./cluster-autoscaler", "--cloud-provider=aws", "--node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled", "--skip-nodes-with-local-storage=false", "--stderrthreshold=info", "--expander=least-waste", "--v=4"]
......
...@@ -7,3 +7,11 @@ variable "envname" { ...@@ -7,3 +7,11 @@ variable "envname" {
} }
variable "worker_iam_role_arn" {} variable "worker_iam_role_arn" {}
variable "cluster_autoscaler_version" {
default = "1.3.6"
}
variable "cluster_autoscaler_image_region" {
default = "eu"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment