kubernetes Argo CD错误=“服务器密钥丢失”

sqxo8psd  于 2023-01-12  发布在  Kubernetes
关注(0)|答案(1)|浏览(246)

重新启动后,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应重新启动并正常运行

polkgigr

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重新启动后填充!):

data:
  admin.password: JDJhJDEwJHl4cmhWRE5zRGQuOVdSMVRKNkE2VWVlM24uaXhmRmROblVZVkhQTzdqYVA3LmdmcWdEc2JT
  admin.passwordMtime: MjAyMy0wMS0wOVQwODoyMDo0OFo=
  server.secretkey: R1hzK0hDSk1oTVdqT3grK0J6SVJmdzhMUXpqNzUwN0ZSUmVQeXZDdXRBYz0=
  tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURaakNDQWs2Z0F3SUJBZ0lSQUttbzVJbGc1WmpDM004YlNaazZKeDR3RFFZSktvWklodmNOQVFFTEJRQXcKRWpFUU1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