goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
23.7k stars 4.73k forks source link

Can I use harbor with external redis? #16837

Closed andyzheung closed 2 years ago

andyzheung commented 2 years ago

1、I deploy the redis cluster like: https://github.com/OT-CONTAINER-KIT/redis-operator image 2、helm like this: image 3、But the core service and jobservice can't running correctly. image 4、core logs: 2022-05-11T02:42:59Z [INFO] [/common/dao/base.go:71]: Register database completed 2022-05-11T02:42:59Z [INFO] [/common/dao/pgsql.go:130]: Upgrading schema for pgsql ... 2022-05-11T02:42:59Z [INFO] [/common/dao/pgsql.go:133]: No change in schema, skip. 2022-05-11T02:42:59Z [INFO] [/migration/migration.go:58]: Abstracting artifact data to DB... 2022-05-11T02:42:59Z [INFO] [/migration/migration.go:67]: No need to abstract artifact data. Skip 2022-05-11T02:42:59Z [WARNING] [/lib/cache/helper.go:65]: failed to save value to cache, error: MOVED 11633 172.28.58.198:6379 2022-05-11T02:42:59Z [INFO] [/core/main.go:88]: User id: 1 already has its encrypted password. 2022-05-11T02:42:59Z [INFO] [/chartserver/cache.go:185]: Enable redis cache for chart caching 2022-05-11T02:42:59Z [INFO] [/chartserver/reverse_proxy.go:60]: New chart server traffic proxy with middlewares 2022-05-11T02:42:59Z [INFO] [/core/api/chart_repository.go:621]: API controller for chart repository server is successfully initialized 2022-05-11T02:42:59Z [INFO] [/core/main.go:289]: Registering Trivy scanner 2022-05-11T02:42:59Z [INFO] [/pkg/scan/init.go:64]: Scanner registration already exists: http://autonomy-harbor-trivy:8080 2022-05-11T02:42:59Z [INFO] [/core/main.go:311]: Setting Trivy as default scanner 2022-05-11T02:42:59Z [INFO] [/pkg/scan/init.go:79]: Skipped setting Trivy as the default scanner. The default scanner is already set to http://autonomy-harbor-trivy:8080 2022-05-11T02:42:59Z [INFO] [/core/main.go:254]: initializing notification... 2022-05-11T02:42:59Z [INFO] [/pkg/notification/notification.go:44]: notification initialization completed 2022-05-11T02:42:59Z [INFO] [/core/main.go:273]: Version: v2.5.0, Git commit: 98e1b82f 2022-05-11T02:42:59Z [INFO] [/core/main.go:275]: Fix empty subiss for meta info data. 2022-05-11T02:42:59Z [INFO] [/pkg/oidc/fix.go:23]: Not found any records with empty subiss, good to go. 2022/05/11 02:42:59.352 [I] [asm_amd64.s:1581] http server Running on http://:8080 2022/05/11 02:42:59.812 [E] [middleware.go:52] MOVED 11627 172.28.58.198:6379 2022/05/11 02:43:08.377 [E] [middleware.go:52] MOVED 16357 172.28.58.198:6379 2022/05/11 02:43:18.374 [E] [middleware.go:52] MOVED 703 172.28.85.245:6379 2022/05/11 02:43:18.374 [E] [middleware.go:52] MOVED 3390 172.28.85.245:6379 2022-05-11T02:43:18Z [INFO] [/core/main.go:96]: capture system signal terminated, to close "closing" channel

wy65701436 commented 2 years ago

For the sentinel issue, it fixed by https://github.com/goharbor/harbor/commit/3e8bf9faedb0738b49c1d5988d9b0cb163520e95, will be in the v2.5.1. With luck, we could have the first rc build in next weekly. Please monitor the release, thanks.