Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhnc2 committed May 2, 2024
1 parent cb4cd91 commit 433338b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- '**/*.md'



jobs:
Expand Down
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,35 @@ Dựa vào đề bài helm template sử dụng các CRDs/options:
Values được đặt với các cấu hình tùy chỉnh như sau.
```yaml
redis:
enabled: false
enabled: true
# replicaCount: 1
# memoryLimit: 2Gi
# cpuLimit: "1"

registry:
replicaCount: 1
username: admin
password: admin

# username:
# password:
maxUploadSize: 30m # maximum upload file
host: registry.local
garbageCron: 0 1 * * * # set the time to run docker image garbage collection, default is run daily at 00:00 AM
# memoryLimit: 2Gi
# cpuLimit: "1"
```

Trong đó, cho phép bạn bật tắt tùy chọn Redis, nếu không sử dụng, service mặc định sử dụng `inmemory`
Các tham số có thể update username/password sử dụng trong basic auth (mặc định sẽ là admin/admin nếu không được cấu hình). Set số lượng Rep. Cấu hình hostname sử dụng trong nginx Ingress và cấu hình maximum file có thể tải lên với key:`maxUploadSize`. Với `garbageCron` - Thời gian chạy cron có thể tham khảo tại: https://crontab.guru/ (mặc định sẽ chạy mỗi ngày `0 0 * * *` UTC (7h sáng VN))
- Trong đó, cho phép bạn bật tắt tùy chọn Redis, nếu không sử dụng, service mặc định sử dụng `inmemory`
- `username`/`password` sử dụng trong basic auth (mặc định sẽ là admin/admin nếu không được cấu hình).
- Set số lượng Rep qua key `replicaCount`.
- Cấu hình hostname sử dụng trong nginx Ingress và cấu hình maximum file có thể tải lên với key:`maxUploadSize`.
- Resource limit với 2 keys: `memoryLimit`, `cpuLimit` mặc định limit ở mức 512MB, 0.5CPU.
- `garbageCron` - Thời gian chạy cron có thể tham khảo tại: https://crontab.guru/ (mặc định sẽ chạy mỗi ngày `0 0 * * *` UTC (7h sáng VN))

# Sử dụng chart

Có thể sử dụng bằng cách tải xuống file trong mục release, vd: sử dụng file release `registry-0.1.0.tgz`:
Có thể sử dụng bằng cách tải xuống file trong mục release, vd: sử dụng file release `registry-0.1.1.tgz`:

```sh
tar -zxvf registry-0.1.0.tgz
tar -zxvf registry-0.1.1.tgz
```
Lệnh trên sẽ giải nén thư mục mới có tên `registry` tại path giải nén.

Expand Down

0 comments on commit 433338b

Please sign in to comment.