我可以访问我的 kubernetes 集群(eks)。我用的乳清
kubectl get configmaps
我有所有的授权来列出所有的豆荚。当我尝试从本地 ide(我使用 kubectl 的 seme 主机)运行使用https://github.com/fabric8io/fabric8的应用程序时,在启动期间出现此运行时错误:
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing:
GET at: https://xxxxxxxxx.gr7.eu-central-1.eks.amazonaws.com/api/v1/configmaps/phygital-foobarmanagement-us.
Message: Forbidden! User arn:aws:eks:eu-central-1:198373991235:cluster/inventia-ci doesn't have permission. configmaps "phygital-foobarmanagement-us" is forbidden:
User "system:anonymous" cannot get resource "configmaps" in API group "" at the cluster scope.
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:472)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:409)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:381)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:344) ```
就像应用程序(在允许的主机上运行)正在尝试使用系统:匿名登录信息。
我怎么能告诉它使用我的本地赠款?
比你提前