首页 > 解决方案 > 出现错误“无法使用 Kubernetes 登录:无效的角色名称“abc-reader-xyz-cluster”;嵌套异常”

问题描述

我有集群“ABC”。现在我将应用程序移动到“XYZ”集群。我用Clsuter“XYZ”更改了所有配置文件。现在,当我尝试部署应用程序时,出现以下错误:

o.s.v.c.l.SecretLeaseEventPublisher$LoggingErrorListener -  - [RequestedSecret [path='bass/orchestrator/sit', mode=ROTATE]] Lease [leaseId='null', leaseDuration=PT0S, renewable=false] Cannot login using Kubernetes: invalid role name "bass-reader-prod-nezbleu"; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request
org.springframework.vault.authentication.VaultLoginException: Cannot login using Kubernetes: invalid role name "Xyz123"; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request
    at org.springframework.vault.authentication.VaultLoginException.create(VaultLoginException.java:64)
    at org.springframework.vault.authentication.KubernetesAuthentication.login(KubernetesAuthentication.java:107)
    at org.springframework.vault.authentication.LifecycleAwareS

标签: javaspringkubernetesgoogle-cloud-platformspring-cloud-vault-config

解决方案


推荐阅读