3 Installing SUSE Private Registry using the Rancher UI #
You can install SUSE Private Registry from the Rancher UI by adding the SUSE Private Registry OCI repository, creating a registry secret and installing the Helm chart from the Apps catalog. The procedure consists of five tasks: create a namespace, add the repository, create the secrets, install the chart and verify the deployment.
3.1 What requirements must I meet? #
A running supported Kubernetes cluster that Rancher manages. For details, see Rancher installation requirements.
SCC mirroring credentials (a user name and a password) for an organization with a SUSE Private Registry subscription. For details, see Section 4.1, “Obtaining Kubernetes secrets from the SUSE Customer Center”.
If you expose the registry with Ingress, a fully qualified domain name (FQDN) for Private Registry and an Ingress controller in the cluster.
Optional: a TLS certificate and private key for the FQDN.
3.2 Creating a namespace #
Log in to Rancher.
Click menu:☰[] and select .
Click next to your cluster, usually
local.Select › .
Click in a project or under Not in a Project.
Enter
suse-registryas the name and click .
3.3 Adding the SUSE Private Registry repository #
In the cluster view, select › and click .
Select as the target.
Enter a name, such as
suse-private-registry.In OCI Repository Host URL, enter
oci://registry.suse.com/private-registry/private-registry-helm.In Authentication, select
Create an HTTP Basic Auth Secretand enter the SCC user name and password.Click .
Wait until the repository state changes to
Active.
3.4 Creating the registry and TLS secrets #
The cluster needs a secret to pull the Private Registry images from registry.suse.com.
Select › and click .
Select as the secret type.
In the Namespace list, select the
suse-registrynamespace and entersuse-registryas the secret name. The chart expects this secret name by default.From the registry list, select
Custom, then enterregistry.suse.comas the domain.Enter the SCC user name and password and click .
Optional: To use your own certificate, click again, select , enter
suse-registry-tlsas the name and paste the certificate and private key.
3.5 Installing the Helm chart #
Select › .
Search for
suse-private-registry. If the chart is missing, select › , select the repository and click .NoteThe catalog can show two entries. Select
suse-private-registry, which has the description and the latest version.Click the chart and review the
README.md.Click .
On the Metadata step, select the
suse-registrynamespace and enterspras the release name.Click .
On the Values step, configure the chart as described in Section 3.6, “How do I configure Private Registry during the installation?”.
Click .
3.6 How do I configure Private Registry during the installation? #
The Values step of the installation wizard offers two ways to configure the chart: a guided form and a YAML editor. Both change the same values, and you can switch between them at any time.
Method 1: Using the guided form
On the Values step, select Edit Options. The form groups the settings into tabs.
On the Expose tab, enter the FQDN in Ingress Host and the controller in Ingress Class Name, such as
traefik.On the General tab, enter
https://<PRIVATE_REGISTRY_FQDN>in External URL and set Harbor Admin Password.Optional: Use the External Services, Deployment and Storage tabs to use external Redis or database services, set replica counts and set volume sizes and the storage class.
Select Compare Changes to review the differences from the defaults.
Do not edit Image Pull Secrets in the form. It can display [object Object].
To change it, use Edit YAML.
Method 2: Using Edit YAML
On the Values step, select Edit YAML next to Edit Options. The editor shows all chart values with their defaults.
Figure 3.5: Editing the chart values as YAML #Change the values that you need, for example:
externalURL: https://<PRIVATE_REGISTRY_FQDN> harborAdminPassword: "<MY_PASSWORD>" imagePullSecrets: - name: suse-registry expose: type: ingress tls: enabled: true certSource: auto ingress: className: <INGRESS_CLASS> hosts: core: <PRIVATE_REGISTRY_FQDN> persistence: enabled: trueTo use your own certificate, create a TLS secret first, set
certSourcetosecretand setexpose.tls.secret.secretName. For all values, see Appendix A, Overriding the SUSE Private Registry Helm chart.
If you do not set harborAdminPassword, the default password is Harbor12345.
Change it after the first login.
3.7 How do I verify the installation? #
Select › and check that the release status is
Deployed.Figure 3.6: Installed release #Select › and check that all pods in the
suse-registrynamespace areRunning.Open
https://<PRIVATE_REGISTRY_FQDN>and log in asadmin.
If you did not set a password, read it from the HARBOR_ADMIN_PASSWORD key of the spr-harbor-core secret in › .
3.8 Upgrading Private Registry using the Rancher UI #
Select › .
Click menu:⋮[] for the release and select .
Select the new chart version and review the values.
Click .
3.9 What if the installation fails? #
- The chart does not appear in the catalog
Check that the repository state is
Active. Verify the SCC credentials and refresh the repository.- Pods show
ImagePullBackOff Check that the
suse-registrysecret exists in the release namespace and has valid credentials.- The portal is not reachable
Check that
externalURLandexpose.ingress.hosts.corematch the FQDN, and that the FQDN resolves to your Ingress controller.
For more problems, see Chapter 12, Troubleshooting.





