Skip to content

Commit

Permalink
update addons for 1.29
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 21, 2024
1 parent b07c8c1 commit de2eaed
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 30 deletions.
18 changes: 9 additions & 9 deletions examples/full-cluster-tf-upgrade/1.29/variables.addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ variable "addon_versions" {
"eks-pod-identity-agent" = "v1.3.2-eksbuild.2"
}
"1.29" = {
"coredns" = "v1.11.3-eksbuild.1"
"kube-proxy" = "v1.29.7-eksbuild.5"
"vpc-cni" = "v1.18.3-eksbuild.3"
"aws-ebs-csi-driver" = "v1.34.0-eksbuild.1"
"aws-efs-csi-driver" = "v2.0.7-eksbuild.1"
"adot" = "v0.102.0-eksbuild.1"
"snapshot-controller" = "v8.0.0-eksbuild.1"
"amazon-cloudwatch-observability" = "v2.1.0-eksbuild.1"
"eks-pod-identity-agent" = "v1.3.2-eksbuild.2"
"coredns" = "v1.11.3-eksbuild.2"
"kube-proxy" = "v1.31.2-eksbuild.3"
"vpc-cni" = "v1.19.0-eksbuild.1"
"aws-ebs-csi-driver" = "v1.37.0-eksbuild.1"
"aws-efs-csi-driver" = "v2.1.0-eksbuild.1"
"adot" = "v0.109.0-eksbuild.1"
"snapshot-controller" = "v8.1.0-eksbuild.2"
"amazon-cloudwatch-observability" = "v2.3.1-eksbuild.1"
"eks-pod-identity-agent" = "v1.3.4-eksbuild.1"
}
"1.30" = {
"coredns" = "v1.11.3-eksbuild.1"
Expand Down
4 changes: 4 additions & 0 deletions examples/full-cluster-tf-upgrade/1.30/import.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {
to = aws_cloudwatch_log_group.cluster
id = format("/aws/eks/%v/cluster", var.cluster_name)
}
25 changes: 13 additions & 12 deletions examples/full-cluster-tf-upgrade/1.30/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,19 @@ locals {

# The log group name format is /aws/eks/<cluster-name>/cluster
# Reference: https://docs.aws.amazon.com/eks/latest/userguide/control-plane-logs.html
# Obsolete: EKS cluster automatically creates the Cloudwatch log group
#resource "aws_cloudwatch_log_group" "eks_cluster" {
# name = format("/aws/eks/%v/cluster", var.cluster_name)
# retention_in_days = 180
#
# tags = merge(
# local.base_tags,
# local.common_tags,
# var.tags,
# var.application_tags,
# )
#}
# define the CW log here to be able to specify a log retention date. There is no other way to do that.

resource "aws_cloudwatch_log_group" "cluster" {
name = format("/aws/eks/%v/cluster", var.cluster_name)
retention_in_days = var.cluster_log_retention_days

tags = merge(
local.base_tags,
local.common_tags,
var.tags,
var.application_tags,
)
}

# we changed endpoint_public_access to false by default. This is so we can reach the EKS API through private IPs
# from on-prem and from the cloud. Otherwise, another account outside of where this is created will be unable to
Expand Down
18 changes: 9 additions & 9 deletions examples/full-cluster-tf-upgrade/1.30/variables.addons.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ variable "addon_versions" {
"eks-pod-identity-agent" = "v1.3.2-eksbuild.2"
}
"1.29" = {
"coredns" = "v1.11.3-eksbuild.1"
"kube-proxy" = "v1.29.7-eksbuild.5"
"vpc-cni" = "v1.18.3-eksbuild.3"
"aws-ebs-csi-driver" = "v1.34.0-eksbuild.1"
"aws-efs-csi-driver" = "v2.0.7-eksbuild.1"
"adot" = "v0.102.0-eksbuild.1"
"snapshot-controller" = "v8.0.0-eksbuild.1"
"amazon-cloudwatch-observability" = "v2.1.0-eksbuild.1"
"eks-pod-identity-agent" = "v1.3.2-eksbuild.2"
"coredns" = "v1.11.3-eksbuild.2"
"kube-proxy" = "v1.31.2-eksbuild.3"
"vpc-cni" = "v1.19.0-eksbuild.1"
"aws-ebs-csi-driver" = "v1.37.0-eksbuild.1"
"aws-efs-csi-driver" = "v2.1.0-eksbuild.1"
"adot" = "v0.109.0-eksbuild.1"
"snapshot-controller" = "v8.1.0-eksbuild.2"
"amazon-cloudwatch-observability" = "v2.3.1-eksbuild.1"
"eks-pod-identity-agent" = "v1.3.4-eksbuild.1"
}
"1.30" = {
"coredns" = "v1.11.3-eksbuild.1"
Expand Down
6 changes: 6 additions & 0 deletions examples/full-cluster-tf-upgrade/1.30/variables.eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ variable "cluster_version" {
default = "1.28"
}

variable "cluster_log_retention_days" {
description = "The EKS cluster CloudWatch Log retention in days"
type = number
default = 90
}

variable "eks_instance_type" {
description = "EKS worker node instance type"
type = string
Expand Down

0 comments on commit de2eaed

Please sign in to comment.