This may be due to the current user or role not having Kubernetes RBAC permissions to describe cluster resources or not having an entry in the cluster’s auth config map.

0

Enter image description here

Why this error happened???

I don't know why this error happened.

I updated it.

GK5I9BP:~/test$ kubectl get nodes kubectl edit cm/aws-auth -n kube-system

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: |
    - groups:
      - system:bootstrappers
      - system:nodes
      rolearn: arn:aws:iam::xxxxxxx:role/eksctl-eks-cluster-nodegroup-ng-84-NodeInstanceRole-yO62vdPiq54K
      username: system:node:{{EC2PrivateDNSName}}
    - groups:
      - system:masters
      rolearn: arn:aws:iam::xxxxxx:role/eksctl-eks-cluster-cluster-ServiceRole-13LkLJkKk2FU
      username: eksctl-eks-cluster-cluster-ServiceRole-13LkLJkKk2FU
  mapUsers: |
    - groups:
      - system:masters
      userarn: arn:aws:iam::xxxxxxx:user/eks-user
      username: eks-user
kind: ConfigMap
metadata:
  creationTimestamp: "2023-12-02T09:08:45Z"
  name: aws-auth
  namespace: kube-system
  resourceVersion: "6050"
  uid: a51edc82-2380-4ed0-a608-82fdf0cef45c

below is Security subject role and policy Enter image description here

jmkang
asked 5 months ago273 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions