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 ]
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 ]
aws cli is used to create Kubernetes config (normally ~/.kube/config
).
See details by:
aws eks update-kubeconfig help
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
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>
© 2022 - 2024 — McMap. All rights reserved.