kubernetes / k8s.io

Code and configuration to manage Kubernetes project infrastructure, including various *.k8s.io sites
https://git.k8s.io/community/sig-k8s-infra
Apache License 2.0
690 stars 782 forks source link

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

Open koksay opened 2 weeks ago

koksay commented 2 weeks ago

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 commented 2 weeks ago

/assign @xmudrii

k8s-ci-robot commented 2 weeks ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: koksay Once this PR has been reviewed and has the lgtm label, please ask for approval from xmudrii. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[infra/aws/terraform/modules/eks-prow-iam/OWNERS](https://github.com/kubernetes/k8s.io/blob/main/infra/aws/terraform/modules/eks-prow-iam/OWNERS)** - **[infra/aws/terraform/prow-build-cluster/OWNERS](https://github.com/kubernetes/k8s.io/blob/main/infra/aws/terraform/prow-build-cluster/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment