Skip to content

Commit ecf4f68

Browse files
committed
Update Blog “setting-up-harbor-as-a-local-container-registry-in-hpe-private-cloud-ai”
1 parent 4ea9e84 commit ecf4f68

File tree

2 files changed

+29
-13
lines changed

2 files changed

+29
-13
lines changed

content/blog/setting-up-harbor-as-a-local-container-registry-in-hpe-private-cloud-ai.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,43 +33,59 @@ The following sections describe in detail how to deploy *Harbor* into PCAI using
3333

3434
### Harbor Deployment via PCAI *Import Framework*
3535

36-
The *Harbor* Helm charts have been available from GitHub repository [*pcai-helm-examples*](https://github.com/GuopingJia/pcai-helm-examples/tree/main/harbor). Based on the latest Helm charts from the official [Harbor site](https://helm.goharbor.io/harbor-1.17.0.tgz), a few required YAML manifest files, together with changes to the values.yaml, have been added to be easily deployed into HPE PCAI. In particular, we increase the *Harbor* registry size from the default *5G* to *500G*:
36+
Based on the latest Helm charts from the official [*Harbor* site](https://helm.goharbor.io/harbor-1.17.0.tgz), the following required YAML manifest files have been added:
37+
38+
* *virtualService.yaml*: an Istio *VirtualService* configuration file to define routing rules for incoming requests.
39+
* *kyverno-cluster-policy*: a Kyverno *ClusterPolicy* file to add the required labels to the deployment.
40+
41+
The default *values.yaml* file has been also updated with the following contents:
42+
43+
* appended an *ezua* section to define the *Istio Gateway* and expose a service endpoint:
3744

3845
```bash
39-
persistence.persistentVolumeClaim.registry.size = 500G
46+
ezua:
47+
48+
virtualService:
49+
endpoint: "harbor.${DOMAIN_NAME}"
50+
istioGateway: "istio-system/ezaf-gateway"
4051
```
4152

42-
Using the created Helm charts, *Harbor* can be easily deployed into PCAI via its *Import Framework*:
53+
* increased the *Harbor* registry size from the default *5G* to *500G*:
54+
55+
```bash
56+
persistence.persistentVolumeClaim.registry.size = 500G
57+
```
58+
59+
The updated *Harbor* Helm charts have been available from GitHub repository [*pcai-helm-examples*](https://github.com/GuopingJia/pcai-helm-examples/tree/main/harbor).
60+
Using updated Helm charts, *Harbor* can be easily deployed into PCAI via the *Import Framework*:
4361

4462
![](/img/import-harbor.png)
4563

4664
2. Harbor UI access via its endpoint
4765

48-
After Harbor is installed through PCAI *Import Framework*, there is an **Imported** *Harbor* tile being added under *Tools & Frameworks*. A virtual service endpoint, e.g., *https://harbor.ingress.pcai0104.ld7.hpecolo.net* is configured.
49-
66+
After *Harbor* is installed through PCAI *Import Framework*, an **Imported** *Harbor* tile is added to *Tools & Frameworks*, under *Data Science* tab. A virtual service endpoint, e.g., *https://harbor.ingress.pcai0104.ld7.hpecolo.net*, has been configured and exposed for *Harbor* access.
67+
5068
![](/img/harbor-deployment.png)
5169

52-
Simply clicking *Open* button, or copying the endpoint and pointing it in the browser, the *Harbor* login page is loaded:
70+
Simply clicking *Open* button, or copying the endpoint URL to the browser, the *Harbor* login page shows up in a new window:
5371

5472
![](/img/harbor-login.png)
5573

5674
Using the default Harbor *admin* user credentials, you can log into *Harbor* projects page:
5775

5876
![](/img/harbor-ui.png)
5977

60-
By default, there is a public project *library* pre-created.
61-
62-
#### Harbor Project per Customer
78+
#### Harbor project and user creation
6379

64-
Harbor manages images through projects. You need create your project by clicking *+ NEW PRORJECT*:
80+
*Harbor* manages container images through projects. A project contains all image repositories of an application. Images cannot be pushed to *Harbor* before a project is created. By default, there is a public project *library* pre-created. You can create your project by clicking *+ NEW PRORJECT*:
6581

6682
![](/img/create-project.png)
6783

68-
The preconfigured *admin* user is the default member to each project with *Project Admin* role.
84+
You should always create a private project to restrict any user to pull images from the project. You can further add quota to limit project usage of registry capacity. The *demo* project is created using the default unlimited (-1) quota.
6985

70-
![](/img/admin-member.png)
86+
You can then create users and add them as the members to a project using RBAC.
7187

72-
There are two new users, *pcai-developer*, & *pcai-admin*, have been created:
88+
Two users, *pcai-developer*, & *pcai-admin*, are created:
7389

7490
![](/img/two-users-harbor.png)
7591

static/img/import-harbor.png

83.9 KB
Loading

0 commit comments

Comments
 (0)