可以尝试通过增加ArgoCD后端服务器的资源来解决。也可以在ArgoCD UI的设置中禁用掉某些负责较费时操作的组件,比如状态对比相关的部分。以下是如何禁用状态对比组件的示例代码:
argocd:
dex:
connectorSyncTimeout: 300s
grpcClientTimeout: 60s
rbac:
policy: |
g, system:serviceaccount:argocd:argocd-manager \
roles/admin \
g, system:serviceaccount:argocd:argocd-manager \
rolebinding.rbac.authorization.k8s.io/argocd-manager-role-binding
server:
grpc:
enabled: true
port: 8080
insecure: false
# disable health checks to speed up UI when there are many deployments and resources
disableLegacyHealthChecks: true
# disable status comparison feature to speed up UI when there are many deployments and resources
disableDiffHistory: true
在这个示例中,我们通过在ArgoCD配置文件中设置disableDiffHistory字段为true来禁用状态对比功能,这可以显著提高UI的响应速度。