Steps to troubleshoot the Amazon EKS Connector:
Amazon EKS is unable to communicate with your Kubernetes cluster API server. The cluster must be in an ACTIVE state for successful connection. Try again in a few minutes.
$ kubectl get pods -n eks-connector |
$ kubectl logs eks-connector-0 --container connector-init -n eks-connector $ kubectl logs eks-connector-1 --container connector-init -n eks-connector |
$ kubectl apply -f connector.yaml |
Run the following command to check the date and time on all the nodes and Amazon EKS connector pods.
$ kubectl exec eks-connector-0 --container connector-agent -n eks-connector -- cat /var/log/amazon/ssm/amazon-ssm-agent.log |
Stop and start the container service.
Download the YAML file and update it with %IAM_ARN% user field as follows:
$ curl -o eks-connector-clusterrole.yaml https://s3.us-west-2.amazonaws.com/amazon-eks/eks-connector/manifests/eks-connector-console-roles/eks-connector-clusterrole.yaml
$ kubectl apply -f eks-connector-clusterrole.yaml |
Download the YAML file and update the YAML with %IAM_ARN% user field as follows:
$ curl -o eks-connector-console-dashboard-full-access-group.yaml https://s3.us-west-2.amazonaws.com/amazon-eks/eks-connector/manifests/eks-connector-console-roles/eks-connector-console-dashboard-full-access-group.yaml
$ kubectl apply -f eks-connector-console-dashboard-full-access-group.yaml |