1068
Comment:
|
1282
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
1. Can you see the cluster (check correct AWS_Profile) {{{ | 1. Can you see the cluster (check correct export AWS_PROFILE=) {{{ |
Line 13: | Line 13: |
# or if installed eksctl get cluster |
|
Line 19: | Line 21: |
1. AWS doc for '''Unauthorized or access denied (kubectl)''' * https://docs.aws.amazon.com/eks/latest/userguide/troubleshooting.html#unauthorized |
|
Line 21: | Line 25: |
1. install eksctl https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html | 1. install '''eksctl''' AWStool https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html |
k8s kubernetes on AWS AWSEKS
Terraform example1 https://www.padok.fr/en/blog/aws-eks-cluster-terraform
Terraform example2 https://github.com/hashicorp/terraform-provider-aws/tree/master/examples/eks-getting-started
- 202012 - worked, only changed region and setup aws credentials.
- Creates new VPC and 2 subnets for k8s deployment
- Took 11min for management node to deploy
- Creates new VPC and 2 subnets for k8s deployment
- 202012 - worked, only changed region and setup aws credentials.
aws eks --region <region-code> update-kubeconfig --name <cluster_name>
Recover admin login
Can you see the cluster (check correct export AWS_PROFILE=)
aws eks list-clusters # or if installed eksctl get cluster
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)
AWS doc for Unauthorized or access denied (kubectl)
- Have to assume the original admin account/role
- How to find the admin account / role ?
install eksctl AWStool https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html
retrieve accounts
- How to find the admin account / role ?