From 4a505bfe451ecc3882199da8a19fa75afaebe2af Mon Sep 17 00:00:00 2001 From: Kapil Rastogi Date: Wed, 20 Jan 2021 16:44:31 +0530 Subject: [PATCH] Kops k8s ami upgrade from deprecated 1.8 -> 1.9 --- .../terraform/cluster/aws/infrastructure/variables.tf | 4 ++-- .../modules/k8s-cluster/aws/kops/templates/cluster.tpl | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deployment/terraform/cluster/aws/infrastructure/variables.tf b/deployment/terraform/cluster/aws/infrastructure/variables.tf index 42cddc0af..eae61d181 100755 --- a/deployment/terraform/cluster/aws/infrastructure/variables.tf +++ b/deployment/terraform/cluster/aws/infrastructure/variables.tf @@ -133,8 +133,8 @@ variable "kops_kubernetes" { monitoring-nodes_instance_count = 2 monitoring-nodes_instance_volume = 128 k8s_version = "1.8.6" - node_ami = "ami-7ee37206" - master_ami = "ami-7ee37206" + node_ami = "ami-070a2702b64c27a51" + master_ami = "ami-070a2702b64c27a51" } } diff --git a/deployment/terraform/modules/k8s-cluster/aws/kops/templates/cluster.tpl b/deployment/terraform/modules/k8s-cluster/aws/kops/templates/cluster.tpl index ce9e87b10..cf1ab0f50 100644 --- a/deployment/terraform/modules/k8s-cluster/aws/kops/templates/cluster.tpl +++ b/deployment/terraform/modules/k8s-cluster/aws/kops/templates/cluster.tpl @@ -89,7 +89,7 @@ metadata: name: master-${aws_zone}-1 spec: associatePublicIp: false - image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-03-11 + image: kope.io/k8s-1.9-debian-stretch-amd64-hvm-ebs-2018-08-17 machineType: ${master_instance_type} maxSize: 1 minSize: 1 @@ -112,7 +112,7 @@ metadata: name: master-${aws_zone}-2 spec: associatePublicIp: false - image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-03-11 + image: kope.io/k8s-1.9-debian-stretch-amd64-hvm-ebs-2018-08-17 machineType: ${master_instance_type} maxSize: 1 minSize: 1 @@ -135,7 +135,7 @@ metadata: name: master-${aws_zone}-3 spec: associatePublicIp: false - image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-03-11 + image: kope.io/k8s-1.9-debian-stretch-amd64-hvm-ebs-2018-08-17 machineType: ${master_instance_type} maxSize: 1 minSize: 1 @@ -158,7 +158,7 @@ metadata: name: app-nodes spec: associatePublicIp: false - image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-03-11 + image: kope.io/k8s-1.9-debian-stretch-amd64-hvm-ebs-2018-08-17 machineType: ${app-nodes_instance_type} maxSize: ${app-nodes_instance_count} minSize: ${app-nodes_instance_count} @@ -181,7 +181,7 @@ metadata: name: monitoring-nodes spec: associatePublicIp: false - image: kope.io/k8s-1.8-debian-stretch-amd64-hvm-ebs-2018-08-17 + image: kope.io/k8s-1.9-debian-stretch-amd64-hvm-ebs-2018-08-17 machineType: ${monitoring-node_instance_type} maxSize: ${monitoring-node_instance_count} minSize: ${monitoring-node_instance_count}