Skip to content

Commit

Permalink
perf: hub use s3
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail committed Sep 29, 2024
1 parent 1ec7ed2 commit 00c5d23
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions controllers/handler/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,26 @@ func (h *hub) deployment() client.Object {
Name: "REGISTRY_AUTH_HTPASSWD_PATH",
Value: "/auth/htpasswd",
},
{
Name: "REGISTRY_STORAGE",
Value: "s3",
},
{
Name: "REGISTRY_STORAGE_S3_ACCESSKEY",
Value: "minioadmin",
},
{
Name: "REGISTRY_STORAGE_S3_SECRETKEY",
Value: "minioadmin",
},
{
Name: "REGISTRY_STORAGE_S3_REGIONENDPOINT",
Value: "http://minio-service:9000",
},
{
Name: "REGISTRY_STORAGE_S3_BUCKET",
Value: "rbd-hub",
},
}
volumeMounts := []corev1.VolumeMount{
{
Expand Down

0 comments on commit 00c5d23

Please sign in to comment.