https://github.com/devops-ws/harbor-guide
Harbor 教程
https://github.com/devops-ws/harbor-guide
guide harbor
Last synced: 19 days ago
JSON representation
Harbor 教程
- Host: GitHub
- URL: https://github.com/devops-ws/harbor-guide
- Owner: devops-ws
- License: mit
- Created: 2022-12-29T04:46:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T07:25:28.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T13:34:39.955Z (about 1 year ago)
- Topics: guide, harbor
- Homepage: https://devops-ws.github.io/harbor-guide/
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# harbor-guide
Harbor 教程
## 安装
### Argo CD
我们可以通过 [Argo CD](https://github.com/devops-ws/argo-cd-guide) 这种 GitOps 的方式来安装 Harbor:
```shell
cat < Linux 下的文件路径为:/etc/docker/daemon.json
>
> 重启命令:systemctl restart docker
命令行登录:
```shell
docker login 10.121.218.242:30002 -u admin -pHarbor12345
```
## Harbor 用户配置
用户可以通过配置环境变量 `CONFIG_OVERWRITE_JSON` 来[修改用户配置](https://goharbor.io/docs/2.5.0/install-config/configure-user-settings-cli/):
```json
CONFIG_OVERWRITE_JSON: '{"auth_mode":"oidc_auth", "oidc_name":"dex", "oidc_endpoint":"https://10.121.218.184:31392/api/dex", "oidc_client_id":"harbor", "oidc_client_secret":"rick", "oidc_admin_group":"infra-admin", "oidc_scope": "openid,offline_access,profile,groups,email", "oidc_user_claim":"username", "oidc_verify_cert":false, "oidc_auto_onboard":true}'
```
* `oidc_auto_onboard` 为 True 的话,用户登录后无需设置账户名,会自动从 `oidc_user_claim` 获取