automation-suite
2023.4
false
- 概述
- 要求
- 安装
- 安装后
- 集群管理
- 监控和警示
- 迁移和升级
- 特定于产品的配置
- 最佳实践和维护
- 故障排除
ArgoCD 登录失败
重要 :
请注意此内容已使用机器翻译进行了部分本地化。
Linux 版 Automation Suite 安装指南
Last updated 2024年9月5日
ArgoCD 登录失败
错误代码 |
12001 |
要解决此问题,请输入您的密码,创建 bcrypt 密码,然后运行下节所述的命令:
password="<enter_your_password>"
bcryptPassword=<generate bcrypt password using link https://www.browserling.com/tools/bcrypt >
# Enter your bcrypt password and run below command
kubectl -n argocd patch secret argocd-secret \
-p '{"stringData": {
"admin.password": "<enter you bcryptPassword here>",
"admin.passwordMtime": "'$(date +%FT%T%Z)'"
}}'
# Run below commands
argocdInitialAdminSecretPresent=$(kubectl -n argocd get secret argocd-initial-admin-secret --ignore-not-found )
if [[ -n ${argocdInitialAdminSecretPresent} ]]; then
echo "Start updating argocd-initial-admin-secret"
kubectl -n argocd patch secret argocd-initial-admin-secret \
-p "{
\"stringData\": {
\"password\": \"$password\"
}
}"
fi
argocAdminSecretName=$(kubectl -n argocd get secret argocd-admin-password --ignore-not-found )
if [[ -n ${argocAdminSecretName} ]]; then
echo "Start updating argocd-admin-password"
kubectl -n argocd patch secret argocd-admin-password \
-p "{
\"stringData\": {
\"password\": \"$password\"
}
}"
fi
password="<enter_your_password>"
bcryptPassword=<generate bcrypt password using link https://www.browserling.com/tools/bcrypt >
# Enter your bcrypt password and run below command
kubectl -n argocd patch secret argocd-secret \
-p '{"stringData": {
"admin.password": "<enter you bcryptPassword here>",
"admin.passwordMtime": "'$(date +%FT%T%Z)'"
}}'
# Run below commands
argocdInitialAdminSecretPresent=$(kubectl -n argocd get secret argocd-initial-admin-secret --ignore-not-found )
if [[ -n ${argocdInitialAdminSecretPresent} ]]; then
echo "Start updating argocd-initial-admin-secret"
kubectl -n argocd patch secret argocd-initial-admin-secret \
-p "{
\"stringData\": {
\"password\": \"$password\"
}
}"
fi
argocAdminSecretName=$(kubectl -n argocd get secret argocd-admin-password --ignore-not-found )
if [[ -n ${argocAdminSecretName} ]]; then
echo "Start updating argocd-admin-password"
kubectl -n argocd patch secret argocd-admin-password \
-p "{
\"stringData\": {
\"password\": \"$password\"
}
}"
fi