Connecting to EKS cluster
After you have installed the AWS CLI on your client machine, follow the steps given below to connect to the EKS cluster before you can start deploying the application.
- Run the following in Command Prompt (CMD) or PowerShell to Configure AWS CLI.
Code
aws configure sso
- Enter the following EKS keys when prompted.
- SSO session name
- SSO start URL
- SSO region
- SSO registration scopes [sso:account:access]
- Attempting to automatically open the SSO authorization page in your default browser – Allow access
- Default client Region
- CLI default output format (json if not specified)
- Profile name
- Run the following command to configures kubectl to communicate with your EKS cluster.
Code
aws eks update-kubeconfig --region <region> --name <cluster-name> --profile <profile-name>
- Run the following command to test if kubectl is communicating with your EKS cluster.
Code
kubectl get nodes