Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ]

like image 378
ajoy sinha Avatar asked Feb 21 '20 08:02

ajoy sinha


2 Answers

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

See details by: aws eks update-kubeconfig help

like image 154
Ivan Avatar answered Sep 27 '22 22:09

Ivan


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

like image 33
Arghya Sadhu Avatar answered Sep 27 '22 21:09

Arghya Sadhu