In case you have acquired the next error whereas making an attempt to problem instructions to kubectl
:
Unable to hook up with the server: dial tcp: lookup
Then it might be on account of your kube-config being outdated. You may simply must replace the native kube-config.
How one can replace the native kube-config
Be certain to interchange eu-west-1
along with your cluster’s area, and substitute cluster_name
with the title of your EKS cluster.
aws eks --region "eu-west-1" update-kubeconfig --name "cluster_name"
How one can replace kube-config
from Terraform state
aws eks --region $(terraform output -raw area) update-kubeconfig --name $(terraform output -raw cluster_name)
The above code makes use of the Terraform state’s output from if you generated the cluster.