k8s.io
k8s.io copied to clipboard
[EKS Prow Cluster] Add karpenter terraform module for eks-prow-build cluster
- 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.