k8s kubernetes on AWS AWSEKS

Recover admin login

  1. Can you see the cluster (check correct AWS_Profile)

    aws eks list-clusters
  2. Make sure current role does not work by retrieveing kubectl config

    aws eks update-kubeconfig --region ap-southeast-2 --name "eks-cluster-name"
    kubectl get svc
    error: You must be logged in to the server (Unauthorized)
  3. Have to assume the original admin account/role