重新启动后,Argocd无法加载。在argocd服务器日志中,我看到缺少server.secretkey
,但我没有看到声明它的位置,我认为它应该由argo服务器生成
服务器记录:
time="2023-01-08T06:48:55Z" level=info msg="Starting configmap/secret informers" time="2023-01-08T06:48:55Z" level=info msg="Configmap/secret informer synced" time="2023-01-08T06:48:55Z" level=info msg="Initialized server signature" time="2023-01-08T06:48:55Z" level=info msg="Initialized admin password" time="2023-01-08T06:48:55Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing" time="2023-01-08T06:48:55Z" level=info msg="Starting configmap/secret informers" time="2023-01-08T06:48:55Z" level=info msg="configmap informer cancelled" time="2023-01-08T06:48:55Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing" time="2023-01-08T06:48:55Z" level=info msg="secrets informer cancelled" time="2023-01-08T06:48:55Z" level=info msg="Configmap/secret informer synced" time="2023-01-08T06:48:55Z" level=info msg="Starting configmap/secret informers" time="2023-01-08T06:48:55Z" level=info msg="configmap informer cancelled" time="2023-01-08T06:48:55Z" level=info msg="Configmap/secret informer synced" time="2023-01-08T06:48:55Z" level=info msg="secrets informer cancelled" time="2023-01-08T06:48:55Z" level=info msg="Creating client app (argo-cd)" time="2023-01-08T06:48:55Z" level=info msg="argocd v2.1.2+7af9dfb serving on port 8080 (url: https://argo.jgjhg.hgg.tech, tls: false, namespace: argocd, sso: true)" time="2023-01-08T06:48:55Z" level=info msg="0xc000d7f380 subscribed to settings updates" time="2023-01-08T06:48:55Z" level=info msg="Starting rbac config informer" time="2023-01-08T06:48:55Z" level=info msg="RBAC ConfigMap 'argocd-rbac-cm' added" time="2023-01-08T06:49:22Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing"
**time="2023-01-08T06:50:37Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing"
**time="2023-01-08T06:51:22Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing" time="2023-01-08T06:51:49Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing" time="2023-01-08T06:52:22Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing" time="2023-01-08T06:58:55Z" level=info msg="Alloc=14201 TotalAlloc=64664 Sys=74065 NumGC=13 Goroutines=139" time="2023-01-08T07:03:36Z" level=info msg="received unary call /version.VersionService/Version" grpc.method=Version grpc.request.claims=null grpc.request.content= grpc.service=version.VersionService grpc.start_time="2023-01-08T07:03:36Z" span.kind=server system=grpc time="2023-01-08T07:03:36Z" level=error msg="finished unary call with code Unknown" **error="server.secretkey is missing" grpc.code=Unknown grpc.method=Version **grpc.service=version.VersionService grpc.start_time="2023-01-08T07:03:36Z" grpc.time_ms=20.524 span.kind=server system=grpc
我使用的是阿尔戈helm 3.21.0
argo应重新启动并正常运行
1条答案
按热度按时间polkgigr1#
argocd-secret
仅在初始安装期间创建。在Helm chart中,您可以看到创建它的条件定义在顶部{{- if .Values.configs.secret.createSecret }}
。但是,我推测此机密已被删除,并且没有“管理”此机密的ArgoCD组件。您可以使用其他值(如admin用户凭据)重新创建此机密。然而,重新生成秘密也可以通过重新应用您的Helm图表来实现,这将只安装丢失/更改的组件:
helm upgrade RELEASE-NAME argo/argo-cd
。一旦Secret存在,您将需要重新启动/删除ArgoCD-Server pod,这将注入如下值(这些值将仅在所述argocd-server重新启动后填充!):