3.3. 安装 aws-iam-authenticator 参见:https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/install-aws-iam-authenticator.html curl -o aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.13.7/2019-06-11/bin/linux/amd64/aws-iam-authenticator chmod +x ./aws-iam-authe...
command-v eksctl&>/dev/null;then curl--silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmpsudo mv/tmp/eksctl/usr/local/bin source<(eksctl completion bash)2>/dev/nullfi ## Installing aws-iam-authenti...
source <(eksctl completion bash) 2>/dev/null fi ## Installing aws-iam-authenticator if ! command -v aws-iam-authenticator &> /dev/null; then curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.23.7/2022-06-29/bin/linux/amd64/aws-iam-authenticator chmod +...
1 config 内容为: [default] output = yaml region = 你集群的区域 2 credentials aws_access_key_id = aws_secret_access_key = 3: 安装 aws-iam-aws-iam-authenticator 参考地址如下:https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html 4: 安装 aws 客户端, 参考地址...
3: 安装 aws-iam-aws-iam-authenticator 参考地址如下: https://docs.aws.amazon.com/eks/latest/userguide/install-aws-iam-authenticator.html 4: 安装 aws 客户端, 参考地址 https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html 5: 执行创建或更新 kubeconfig的命令 : aws eks ...
AWS 提供了 100 多种服务,了解我们需要的服务并使用它,非常的重要。Amazon Elastic Kubernetes Service (Amazon EKS) 是一项 k8s 托管服务,通过它我们可以轻松的在 AWS 上运行 Kubernetes,而且不用建立和维护自己的 Kubernetes 控制面板(Kubernetes 是一个开源的系统,用于自动部署、扩展和管理容器化应用)。
等我们设置好权限之后,当我们创建 Amazon EKS 集群时,会在集群的 RBAC 配置中自动为创建集群的 IAM 实体用户或角色(例如,联合身份用户)授予 system:masters 权限。 默认只有这个IAM角色可以与我们创建的EKS集群进行交互,如果我们要授予其他 AWS 用户或角色与您的集群进行交互的能力,必须编辑 Kubernetes 内的 aws-auth...
您使用的kubectl版本必须与 Amazon EKS 集群控制平面版本相差不到一个小版本。例如,1.18 kubectl 客户端可与 Kubernetes 1.17、1.18 和 1.19 集群配合使用。 通过运行以下命令安装 aws-iam-authenticator。有关的更多信息 aws-iam-authenticator,请参阅安装aws-iam-authenticator。 $ curl -o aws-iam-authenticator htt...
You must use a kubectl version that is within one minor version difference of your Amazon EKS cluster control plane version. For example, a 1.18 kubectl client works with Kubernetes 1.17, 1.18 and 1.19 clusters. Install aws-iam-authenticator by running the following commands. For more informatio...
./install-kubectl-linux.sh Bash 该脚本通过显示aws-iam-authenticator的帮助内容来验证aws-iam-authenticator是否正常工作。 创建EKS 集群和工作进程节点组 在随附的 Git 存储库中的eks-cluster/terraform/aws-eks-cluster-and-nodegroup目录中,创建一个 EKS 集群: ...