这通常表示您的ArgoCD配置文件中存在错误或过期的Github凭据。您可以尝试按照以下步骤解决问题:
验证您的Github凭据是否正确。您可以使用以下命令测试您的凭据:
curl -u : https://api.github.com/user
如果您收到类似“401 Unauthorized”的响应,则您的凭据有误。
更新您的ArgoCD配置文件以使用最新的Github凭据:
apiVersion: argoproj.io/v1alpha1
kind: Repository
metadata:
name:
namespace:
spec:
sshPrivateKeySecret:
name:
# Update your Github credentials below
# with the correct username and token.
username:
passwordSecret:
name:
key: ''
url: git@github.com:/.git
如果您使用的是ArgoCD的Helm安装,请确保您已经正确设置了values.yaml文件中的Github凭据。
重新部署ArgoCD应用程序并尝试再次单点登录Github。