简体   繁体   English

如何配置本地 kubectl 连接到 kubernetes EKS 集群

[英]How to configure local kubectl to connect to kubernetes EKS cluster

I am very new at kubernetes.我是 kubernetes 的新手。

I have created a cluster setup at AWS EKS我在 AWS EKS 创建了一个集群设置

Now I want to configure kubectl at a local ubuntu server so that I can connect at AWS EKS cluster.现在我想在本地 ubuntu 服务器上配置 kubectl,以便我可以连接到 AWS EKS 集群。

Need to understand the process.需要了解这个过程。 [ If at all it is possible ] [如果可能的话]

aws cli is used to create Kubernetes config (normally ~/.kube/config ). aws cli 用于创建 Kubernetes 配置(通常为~/.kube/config )。

See details by: aws eks update-kubeconfig help通过以下方式查看详细信息: aws eks update-kubeconfig help

You can follow this guide .您可以按照本指南进行操作 You need to do following steps.您需要执行以下步骤。

1.Installing kubectl 1.安装kubectl

2.Installing aws-iam-authenticator 2.安装aws-iam-authenticator

3.Create a kubeconfig for Amazon EKS 3.为 Amazon EKS 创建 kubeconfig

4.Managing Users or IAM Roles for your Cluster 4. 为您的集群管理用户或 IAM 角色

Also take a look at configuring kubeconfig using AWS CLI here还可以在此处查看使用 AWS CLI 配置 kubeconfig

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM