Create a new EKS cluster named "game" in the "ap-south-1" region using Fargate:
eksctl create cluster --name game --region ap-south-1 --fargate
Update your kubeconfig to add the new context for the EKS cluster:
aws eks update-kubeconfig --name game --region ap-south-1
# Output: Added new context arn:aws:eks:ap-south-1:590183981315:cluster/game to /Users/path/.kube/config
Unable to connect to the server: getting credentials: decoding stdout: no kind "ExecCredential" is registered for version "client.authentication.k8s.io/v1alpha1" in scheme "pkg/client/auth/exec/exec.go:62"
This is a known issue with the AWS CLI. To resolve it, try upgrading or downgrading the AWS CLI. If the issue persists, consider using an EC2 instance for this process.
To install AWS CLI v2:
# Download AWS CLI v2
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
# Uncompress the archive
unzip awscliv2.zip
# Run the installer
sudo ./aws/install
Associate IAM OIDC Provider
Associate the IAM OIDC provider with your cluster:
eksctl utils associate-iam-oidc-provider --cluster game --approve