ajoy sinha
ajoy sinha

Reputation: 1236

How to configure local kubectl to connect to kubernetes EKS cluster

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

Answers (3)

Jijo John
Jijo John

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

Ivan
Ivan

Reputation: 9705

aws cli is used to create Kubernetes config (normally ~/.kube/config).

See details by: aws eks update-kubeconfig help

Upvotes: 8

Arghya Sadhu
Arghya Sadhu

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

Related Questions