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 +x ./aws-iam-authenticator mkdir -p $HOME/.bin && mv ./aws-iam-authenticator $HOME/.bin...
cat>aws-auth.yaml<<EOF --- apiVersion: v1 kind: ConfigMap metadata: namespace: kube-system name: aws-iam-authenticator labels: k8s-app: aws-iam-authenticator data: config.yaml: | clusterID:${NAME}server: mapRoles: - roleARN: arn:aws:iam::${ACCOUNT_ID}:role/KubernetesAdmin username: ...
参考AWS 创建 Node 到手册,创建 Node (https://docs.aws.amazon.com/eks/latest/userguide/create-managed-node-group.html)。完成后,Node Group 的状态为 Active 。 配置集群(使用 kubectl ) 在本地安装 kubectl 工具,参考手册(https://kubernetes.io/docs/tasks/tools/install-kubectl/) 安装aws-iam-authent...
unzip awscliv2.zip sudo ./aws/install ``` ### 步骤四:安装kubectl插件aws-iam-authenticator ```bash curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.21.2/2021-07-05/bin/linux/amd64/aws-iam-authenticator chmod +x ./aws-iam-authenticator mv aws-iam-authe...
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 ...
5. 通过运行以下命令安装 aws-iam-authenticator.有关的更多信息 aws-iam-authenticator,请 参阅安装aws-iam-authenticator. $ curl -o aws-iam-authenticator https://amazon-eks.s3.us- west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/aws-iam-authenticator $ chmod +x aws-iam-authenticator ...
默认只有这个IAM角色可以与我们创建的EKS集群进行交互,如果我们要授予其他 AWS 用户或角色与您的集群进行交互的能力,必须编辑 Kubernetes 内的 aws-auth ConfigMap。 因为权限策略 最好授予最低权限,才足够安全,所以我们需要知道设置哪些权限可以保证 eks集群能够创建成功,而又没有给多余的权限。 gitlab中已经有用户测试...
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 ...
You can install it with go get -u -v sigs.k8s.io/aws-iam-authenticator/cmd/aws-iam-authenticator.To authenticate, run kubectl --kubeconfig /path/to/kubeconfig" [...]. kubectl will exec the aws-iam-authenticator binary with the supplied params in your kubeconfig which will generate a ...
aws-iam-authenticator 0.6.26 Verified 92eba9f github-actions bot added go bump-formula-pr labels Aug 27, 2024 iMichka approved these changes Aug 27, 2024 View reviewed changes Contributor github-actions bot commented Aug 27, 2024 🤖 An automated task has requested bottles to be publish...