Skip to content

Releases: SPHTech-Platform/terraform-aws-eks

v0.12.8

12 Jun 06:48
82139c5
Compare
Choose a tag to compare

What's Changed

  • Fix odic provider name for fluentbit by @niroz89 in #61

Full Changelog: v0.12.7...v0.12.8

v0.12.7

10 Jun 18:09
472f4ab
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.6...v0.12.7

v0.13.0-alpha4

09 Jun 07:08
Compare
Choose a tag to compare
v0.13.0-alpha4 Pre-release
Pre-release

Testing update the extra config variable name

v0.13.0-alpha3

09 Jun 06:03
Compare
Choose a tag to compare
v0.13.0-alpha3 Pre-release
Pre-release

Testing fluent-bit custom config merge

v0.12.6

07 Jun 06:11
d5640de
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.12.5...v0.12.6

v0.12.5

06 Jun 11:19
47b524f
Compare
Choose a tag to compare

What's Changed

Tested to upgrade Essential submodule without state migration, the helm chart would error out due to the change in the IRSA role and its SA. Will need to delete pods manually to reload the SA role ARN.

Full Changelog: v0.12.4...v0.12.5

v0.12.4

06 Jun 11:04
e587bd0
Compare
Choose a tag to compare

What's Changed

Bug Fix release on helm chart error

Full Changelog: v0.12.3...v0.12.4

v0.12.3

06 Jun 07:16
305096a
Compare
Choose a tag to compare

What's Changed

  • Karpenter submodule by @thepoppingone in #52
  • Cluster Autoscaler is part of Essentials submodule but Karpenter exists as its own submodule

State Migration (Optional but recommended)

  • As autoscaler resources on EKS Essentials submodule are now optionally created, but created by default, when anyone upgdares to v0.12.3 the state is changed from helm_release.cluster_autoscaler to helm_release.cluster_autoscaler[0], module.cluster_autoscaler_irsa_role is also changed module.cluster_autoscaler_irsa_role[0].
  • If you do not do the migration, the resources will be recreated, which might cause some errors but on re apply it should go away (untested)

Additional fields if using Karpenter submodule

  • As Karpenter submodule uses fargate-profile submodule to deploy Karpenter in Fargate, it requires fargate roles arns to be added to the aws-auth for pods to start properly

You have to add this in the locals section when installing EKS main module

autoscaling_mode                                 = "karpenter"
  aws_auth_fargate_profile_pod_execution_role_arns = local.autoscaling_mode == "karpenter" ? concat(values(module.karpenter.fargate_profile_pod_execution_role_arn)) : []
  additional_role_mapping = local.autoscaling_mode == "karpenter" ? [
    {
      rolearn = module.eks.worker_iam_role_arn
      groups = [
        "system:bootstrappers",
        "system:nodes",
      ]
      username = "system:node:{{EC2PrivateDNSName}}"
    }
  ] : []

And update the role_mapping attribute to the following:

role_mapping = concat([
    for role in local.eks_master_roles :
    {
      rolearn  = role.arn
      groups   = ["system:masters"]
      username = role.user
    }
  ], local.additional_role_mapping)

And aws_auth_fargate_profile_pod_execution_role_arns, note the values() should contain the fargate_profile arns map if there are any fargate-profiles used in the existing cluster

aws_auth_fargate_profile_pod_execution_role_arns = concat(values({}), local.aws_auth_fargate_profile_pod_execution_role_arns)

Karpenter Submodule

Lastly, to install Karpenter submodule.

module "karpenter" {
  source  = "SPHTech-Platform/eks/aws//modules/karpenter"
  version = "~> 0.12.0"

  source = "git::https://github.com/SPHTech-Platform/terraform-aws-eks.git//modules/karpenter?ref=karpenter"

  karpenter_chart_version = "v0.27.5"

  cluster_name        = local.cluster_name
  cluster_endpoint    = data.aws_eks_cluster.this.endpoint
  oidc_provider_arn   = module.eks.oidc_provider_arn
  worker_iam_role_arn = module.eks.worker_iam_role_arn

  autoscaling_mode = local.autoscaling_mode
  
 # Required for Fargate profile
  subnet_ids = local.app_subnets

 # Add the provisioners and nodetemplates after CRDs are installed
  # karpenter_provisioners  = local.karpenter_provisioners
  # karpenter_nodetemplates = local.karpenter_nodetemplates

}

More examples to be added in the next release

Full Changelog: v0.12.2...v0.12.3

v0.12.2

05 Jun 07:52
fee1e0b
Compare
Choose a tag to compare

What's Changed

Adding fluentbit config for fargate profiles

Full Changelog: v0.12.1...v0.12.2

v0.13.0-alpha2

30 May 02:18
Compare
Choose a tag to compare
v0.13.0-alpha2 Pre-release
Pre-release

Testing fluent-bit parser changes