kubectl apply -f aws-auth-cm.yaml 提示错误
kubectl apply -f aws-auth-cm.yaml prompts an error
我创建了一个具有角色的集群,并使用 CloudFormation 创建了一个工作节点。我正在尝试授予用户对集群的访问权限,但我尝试了此命令 kubectl apply -f aws-auth-cm.yaml
我不断收到此错误(最小化):
Error from server (Forbidden): error when retrieving current configuration of:
1)请检查您是否已经安装aws-iam-authenticator
2) 当你尝试 运行 kubectl apply -f aws-auth-cm.yaml
时,我希望你先检查一下你的 ~/.aws/credentials
有没有 运行 aws configure
?
3) 运行 aws eks update-kubeconfig --name <cluster_name>
问题是因为我的 IAM 用户;在使用 CloudFormation 创建堆栈之前,我没有更改我的用户凭据。
我创建了一个具有角色的集群,并使用 CloudFormation 创建了一个工作节点。我正在尝试授予用户对集群的访问权限,但我尝试了此命令 kubectl apply -f aws-auth-cm.yaml
我不断收到此错误(最小化):
Error from server (Forbidden): error when retrieving current configuration of:
1)请检查您是否已经安装aws-iam-authenticator
2) 当你尝试 运行 kubectl apply -f aws-auth-cm.yaml
时,我希望你先检查一下你的 ~/.aws/credentials
有没有 运行 aws configure
?
3) 运行 aws eks update-kubeconfig --name <cluster_name>
问题是因为我的 IAM 用户;在使用 CloudFormation 创建堆栈之前,我没有更改我的用户凭据。