有没有办法解决” kubeconfig用户条目正在使用deferated api版本client.authentication.k8s.io/v1alpha1&quort;与脉冲
每当我运行pulumi命令时,我都会收到以下错误消息。我经过验证,我的kubeconfig文件是apiversion:v1
我更新client.authentication.k8s.io/v1alpha1
to client> client.authentication.k8s.io/v1beta1 仍然有问题,此错误消息的原因是什么?
Kubeconfig user entry is using deprecated API version client.authentication.k8s.io/v1alpha1. Run 'aws eks update-kubeconfig' to update.
I get the following error message whenever I run a pulumi command. I verified and my kubeconfig file is apiVersion: v1
I updated client.authentication.k8s.io/v1alpha1
to client.authentication.k8s.io/v1beta1
and still have the issue, what could be the reason for this error message?
Kubeconfig user entry is using deprecated API version client.authentication.k8s.io/v1alpha1. Run 'aws eks update-kubeconfig' to update.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题的错误报告是在这里
基本原因是AWS CLI已发货次要版本版本的破坏变化。您可以看到此在这里
我假设您在这里使用
PULUMI-EKS
软件包,以便提供大于v1.22
的EKS群集。 EKS软件包使用资源提供商来配置某些EKS资源,例如aws-auth
config Map,这与您在〜/.kube/.kube/.kube/.kube/.kube/.kube/.kube/.kube/.kube/.kube/.kube/.kube/ config
为了解决此问题,您需要执行以下操作:
aws-cli
版本大于1.24.0
或2.7。 0
pulumi-eks
在您的语言SDK软件包管理器中更新到大于0.40.0
。这将意味着还会在您现有的堆栈中更新提供商。kubectl
在本地安装的,该版本与已提供的群集版本匹配The bug report for this issue is here
The underlying cause is that the AWS cli shipped a breaking change in a minor version release. You can see this here
I'm assuming here you're using the
pulumi-eks
package in order to provision an EKS cluster greater thanv1.22
. The EKS package uses a resource provider to configure some EKS resources like theaws-auth
config map, and this isn't the same transient kubeconfig you're referring to in~/.kube/config
In order to fix this, you need to do the following:
aws-cli
version is greater than1.24.0
or2.7.0
pulumi-eks
package in your language SDK package manager to greater than0.40.0
. This will mean also updated the provider in your existing stack.kubectl
installed locally that matches your cluster version that has been provisioned