To install Istio in EKS, you will need to set up the Kubernetes context before.
eksctl create cluster --nodes 3
This will deploy a EKS cluster with three nodes on it in your default region.
If you have created your cluster using AWS web UI, you are going to need to set the context manually. Ensure your aws cli is properly configured. Then, run the following command:
aws eks --region <region-code> update-kubeconfig --name <cluster_name>
Verify your cluster if properly configure in your system:
$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.100.0.1 <none> 443/TCP 3d18h
When your Kubernetes context is set you are ready to install Istio.