Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2020-12-20 02:21:20
Size: 482
Editor: PieterSmit
Comment:
Revision 4 as of 2022-03-13 06:30:01
Size: 1282
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Describe k8s/AwsEks here. = k8s kubernetes on AWS AWSEKS =
Line 8: Line 8:


== Recover admin login ==
 1. Can you see the cluster (check correct export AWS_PROFILE=) {{{
aws eks list-clusters
# or if installed
eksctl get cluster
}}}
 1. 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)
}}}
 1. AWS doc for '''Unauthorized or access denied (kubectl)'''
    * https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html#unauthorized
 1. Have to assume the original admin account/role
    * How to find the admin account / role ?
      1. install '''eksctl''' AWStool https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
      2. retrieve accounts {{{


}}}

k8s kubernetes on AWS AWSEKS

Recover admin login

  1. Can you see the cluster (check correct export AWS_PROFILE=)

    aws eks list-clusters
    # or if installed
    eksctl get cluster
  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. AWS doc for Unauthorized or access denied (kubectl)

  4. Have to assume the original admin account/role

k8s/AwsEks (last edited 2022-03-13 06:51:48 by PieterSmit)