Reputation: 1236
I am very new at kubernetes.
I have created a cluster setup at AWS EKS
Now I want to configure kubectl at a local ubuntu server so that I can connect at AWS EKS cluster.
Need to understand the process. [ If at all it is possible ]
Upvotes: 10
Views: 9754
Reputation: 1674
You can use aws eks update-kubeconfig
command. However, you may need to update mapUsers on configMap/aws-auth for mapping userarn and Kubernetes roles.
kubectl edit -n kube-system configmap/aws-auth
aws eks update-kubeconfig --name <Clustername> --region=us-central-1 --profile <aws profile>
Upvotes: 1
Reputation: 9705
aws cli is used to create Kubernetes config (normally ~/.kube/config
).
See details by:
aws eks update-kubeconfig help
Upvotes: 8
Reputation: 44657
You can follow this guide. You need to do following steps.
1.Installing kubectl
2.Installing aws-iam-authenticator
3.Create a kubeconfig for Amazon EKS
4.Managing Users or IAM Roles for your Cluster
Also take a look at configuring kubeconfig using AWS CLI here
Upvotes: 4