<p>I have created a EKS cluster using the the command line eksctl and verified that the application is working fine.</p>
<p>But noticing a strange issue, when i try yo access the nodes in the cluster in the web browser i see the following error</p>
<pre><code>Error loading Namespaces
Unauthorized: Verify you have access to the Kubernetes cluster
</code></pre>
<p><a href="https://i.stack.imgur.com/J6igl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/J6igl.png" alt="enter image description here" /></a></p>
<p>I am able to see the nodes using <code>kubectl get nodes</code></p>
<p>I am logged in as the admin user. Any help on how to workaround this would be really great. Thanks.</p>

opensource-developer
<p>You will need to add your IAM role/user to your cluster's aws-auth config map</p>
<p>Basic steps to follow taken from <a href="https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html" rel="noreferrer">https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html</a></p>
<pre class="lang-sh prettyprint-override"><code>kubectl edit -n kube-system configmap/aws-auth
</code></pre>
<pre><code># Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
  mapRoles: |
    - rolearn: &lt;arn:aws:iam::111122223333:role/eksctl-my-cluster-nodegroup-standard-wo-NodeInstanceRole-1WP3NUE3O6UCF&gt;
      username: &lt;system:node:{{EC2PrivateDNSName}}&gt;
      groups:
        - &lt;system:bootstrappers&gt;
        - &lt;system:nodes&gt;
  mapUsers: |
    - userarn: &lt;arn:aws:iam::111122223333:user/admin&gt;
      username: &lt;admin&gt;
      groups:
        - &lt;system:masters&gt;
    - userarn: &lt;arn:aws:iam::111122223333:user/ops-user&gt;
      username: &lt;ops-user&gt;
      groups:
        - &lt;system:masters&gt;
</code></pre>
