Registry Installation Instructions
The instructions here pertain to the deployment of all Registry and associated components on the Kubernetes cluster using Helm charts. All the components are installed in the same namespace. The deployment may be achieved by the following methods:
Prerequisites
Before you deploy, make sure the following are in place:
✅ Infrastruction setup is completed
✅ Environment has been setup.
✅ Domain name
registry.<your environment>.<your domain name>
(e.g.registry.qa.openg2p.org
) is available along with SSL certificate for the domain (the wild certificate should have already been loaded during Infrastructure setup)✅ Project Owner access on the OpenG2P namespace
Installation using Rancher UI
Log in to Rancher admin console.
Select your cluster.
Under Apps -> Repositories click on Create to add a repository.
Provide Name as
openg2p
and target HTTPS Index URL as https://openg2p.github.io/openg2p-helm/rancher and click Create.To display prerelease versions of OpenG2P apps, click on your user avatar in the upper right corner of the Rancher dashboard. Then click on
Include Prerelease Versions
under Preferences under Helm Charts.Select the namespace in which you would like to install Registry, from the namespace filter on the top-right.
Navigate to Apps->Charts page on Rancher. You should see
OpenG2P Registry
Helm charts listed.

Proceed to Install
OpenG2P Registry
chart select the latest version to be installed, and click Install.On the next screen, choose a name for installation, like
registry
. Select the checkboxCustomise Helm options
before install, and click Next.Go through each app's configuration page, and configure the following:
Configure a hostname for each app in the following way.
<appname>.<base-hostname>
, where base hostname is the wildcard hostname chosen during Istio namespace setup. Example:socialregistry.dev.openg2p.org
andodk-sr.dev.openg2p.org
, etc.<appname>
is arbitrary - default names have been provided.Keycloak Base Url is your organization-wide Keycloak URL. (Ex: keycloak.<your domain>.org)
OIDC Client details are asked. Create Keycloak Client, refer to Keycloak Client Creation guide.
To change the docker image from the default image, click on
Edit YAML
table and update the following section in Helm. Note: This step is required only if you have separate docker image to be deployed or else you can go with default one skip this step.image: pullPolicy: Always repository: openg2p/openg2p-social-registry-odoo-package tag: 17.0-develop-social-registry
To pull docker from a private repository on Docker Hub, follow guide here. Note: This step is required only if you have separate private docker image to be deployed or else you can go with default one skip this step.
Click Next to reach Helm Options page. Disable
wait
flag. Click on Install.Wait for all the pods to get into Running state. This may take several minutes.
Post Installation
Keycloak
Assigning roles to users
Create Keycloak client roles for the following components and assign them to users:
Assigning roles to clients
For Social Registry to be able to access Keymanager APIs, create a realm role in Keycloak with the name "KEYMANAGER_ADMIN" and assign this as a service account role to the Social Registry Keycloak client.
Odoo
Activate the Registry Odoo module after logging into Odoo (TBD).
Tear down
To completely cleanup Registry installation, note the following: Helm uninstall will not delete the database and secrets created. Secret for user does not get deleted (and rightly so). If you re-run the Helm while database still exists, it just brings up Odoo without any issues - it does not re-initalize the database.
To tear down completely:
Helm uninstall via command line or Rancher (Apps -> Installed Apps --> Delete)
Delete
registry
secret in the namespaceDrop
registry_db
and user from PostgresLogin into Postgres as admin (via port fowarding or directly from Rancher)
Use the
postgres-password
key inopeng2p-commons-postgresql
secret to get the passworddrop database registry_db;
drop role registry_db_user;
Drop
mosip-kernel
database:drop database mosip-kernel
TBD: The step 4 will be moved to openg2p-commons, so this won't be required here.
Last updated
Was this helpful?