k8s.io icon indicating copy to clipboard operation
k8s.io copied to clipboard

[EKS Prow Cluster] Add karpenter terraform module for eks-prow-build cluster

Open koksay opened this issue 8 months ago • 2 comments

  • Add karpenter module, which creates related roles, sqs queue and events
  • Update EKSAdmin role to be able to create above resources
  • Add manually added SSO role to terraform

Make sure to update the serviceAccount.annotations field in the infra/aws/terraform/prow-build-cluster/resources/karpenter/flux-hr-karpenter.yaml file (also in infra/aws/terraform/prow-build-cluster/resources/karpenter/prod-cluster-values):

# You may use this command to get the arn after terraform apply:
terraform state show module.karpenter.aws_iam_role.controller\[0\] | grep " arn "

There will be a follow-up PR to add nodepool and nodeclass configration.

koksay avatar Jun 14 '24 14:06 koksay