Skip to content

Commit

Permalink
chore: update eks-public cluster to Kubernetes 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherveCB committed Feb 22, 2023
1 parent 4d9714b commit 7fb23d7
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions eks-public-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module "eks-public" {
version = "19.7.0"
cluster_name = local.public_cluster_name
# Kubernetes version in format '<MINOR>.<MINOR>', as per https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html
cluster_version = "1.23"
cluster_version = "1.24"
# Start is inclusive, end is exclusive (!): from index 3 to index 5 (https://www.terraform.io/language/functions/slice)
# We're using the 3 last private_subnets defined in vpc.tf for this cluster
subnet_ids = slice(module.vpc.private_subnets, 3, 6)
Expand Down Expand Up @@ -50,23 +50,28 @@ module "eks-public" {
vpc_id = module.vpc.vpc_id

## Manage EKS addons with module - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eks_addon
# See new versions with `aws eks describe-addon-versions --kubernetes-version <k8s-version> --addon-name <addon>`
cluster_addons = {
# https://github.com/coredns/coredns/releases
coredns = {
addon_version = "v1.8.7-eksbuild.3"
addon_version = "v1.9.3-eksbuild.2"
}
# Kube-proxy on an Amazon EKS cluster has the same compatibility and skew policy as Kubernetes
# See https://kubernetes.io/releases/version-skew-policy/#kube-proxy
kube-proxy = {
addon_version = "v1.23.8-eksbuild.2"
addon_version = "v1.24.9-eksbuild.1"
}
# https://github.com/aws/amazon-vpc-cni-k8s/releases
vpc-cni = {
addon_version = "v1.11.4-eksbuild.1"
addon_version = "v1.12.2-eksbuild.1"
}
# https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/CHANGELOG.md
aws-ebs-csi-driver = {
addon_version = "v1.11.4-eksbuild.1"
service_account_role_arn = module.eks-public_irsa_ebs.iam_role_arn
addon_version = "v1.16.0-eksbuild.1"
service_account_role_arn = module.eks_irsa_ebs.iam_role_arn
}
}


eks_managed_node_group_defaults = {
instance_types = ["t3a.xlarge"]
capacity_type = "ON_DEMAND"
Expand Down

0 comments on commit 7fb23d7

Please sign in to comment.