Setup a cluster with IRSA enabled
In this tutorial we’ll cover the basics of how to use Cluster API to provision Kubernetes clusters.
Setup a cluster on AWS with IRSA enabled
IRSA(IAM roles for service accounts) allows applications in a pod’s containers can use an AWS SDK or the AWS CLI to make API requests to AWS services using AWS Identity and Access Management (IAM) permissions. More details can be found here.
Setup cluster
Apply the cluster manifest:
Wait the control plane is up:
Retrieve the cluster’s Kubeconfig:
Check node state:
Setup AWS pod identity webhook
Amazon EKS Pod Identity Webhook is for mutating pods that will require AWS IAM access.
AWS pod identity webhook requires cert-manager, (See cert-manager installation).
Install AWS pod identity webhook:
Now, the cluster is ready for use, try with Load Balancer Controller.
Cleanup
IMPORTANT: In order to ensure a proper cleanup of your infrastructure you must always delete the cluster object. Deleting the entire cluster template with kubectl delete -f capi-quickstart.yaml might lead to pending resources to be cleaned up manually.
Uninstall cluster operator:
Optional, clean CRDs:
Optional, delete namespace:
Optional, unintall cert manager:
Optional, shutdown cluster:
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.