When you’ve got acquired the next error whereas attempting to problem instructions to kubectl
:
Unable to hook up with the server: dial tcp: lookup
Then it might be resulting from your kube-config being old-fashioned. You may simply must replace the native kube-config.
Find out how to replace the native kube-config
Make certain to interchange eu-west-1
together with your cluster’s area, and change cluster_name
with the identify of your EKS cluster.
aws eks --region "eu-west-1" update-kubeconfig --name "cluster_name"
Find out how to 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 while you generated the cluster.