Loading

关于Argocd命令行报错FATA[0000] rpc error: code = Unauthenticated desc = invalid session: Token is expired

关于Argocd命令行登陆报错问题,原因是用户认证过期,重新命令行登陆Argocd即可

# argocd repo list
WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. 
FATA[0000] rpc error: code = Unauthenticated desc = invalid session: Token is expired 
[root@c-k-m1-10 ~]# argocd login argocd.k8s.local
WARNING: server certificate had error: x509: certificate is valid for ingress.local, not argocd.k8s.local. Proceed insecurely (y/n)? y
WARN[0002] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. 
Username: admin
Password: 
'admin:login' logged in successfully
Context 'argocd.k8s.local' updated

重新使用客户端命令行

[root@c-k-m1-10 ~]# argocd app list
WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. 
NAME              CLUSTER                         NAMESPACE  PROJECT  STATUS  HEALTH   SYNCPOLICY  CONDITIONS  REPO      
posted @ 2023-03-17 21:58  梨花海棠  阅读(875)  评论(0编辑  收藏  举报