This section explains how to configure access to an Amazon Elastic Kubernetes Service
(EKS) cluster, using the AWS CLI and kubectl
./discli
agent applyOperatorVersion —version=<latest version>. After this,
you can manually update the other services on the agent.Prerequisites:
Before you begin, ensure the following:
-
You have valid AWS access credentials (Access Key ID and Secret Access Key).
-
You have permission to access the target EKS cluster.
-
kubectlis installed on your local machine.
Steps to configure EKS cluster access setup:
- If the AWS CLI is not already installed, install it using the official AWS instructions appropriate for your operating system.
- Run the
aws configurecommand and provide your AWS credentials when prompted. This sets up your AWS access key, secret key, default region, and output format. - List the EKS clusters available in your AWS account using
aws eks list-clusterscommand. Confirm that your target cluster (for example,<your-cluster-name>) appears in the output. - Configure your local kubeconfig file to connect to the EKS cluster using
aws eks update-kubeconfig --name --region us-east-2command. This updates (or creates) the kubeconfig entry required forkubectlto communicate with the cluster. -
Once the kubeconfig is updated, verify connectivity by running any of the following commands:
kubectl get nodes kubectl get pods -ASuccessful output confirms that your local environment is connected to the EKS cluster.
-
To view all configured Kubernetes contexts:
kubectl config get-contexts - To switch to a specific cluster
context:
kubectl config use-context <cluster-name-from-above-command>
You can now execute kubectl commands against the specified EKS
cluster. After verifying cluster connectivity, return to Install and Download Agent to proceed
with the installation.