Deployment
Deploying OpenG2P SPAR on Kubernetes using Helm charts.
SPAR is deployed over Kubernetes infrastructure that offers production-grade deployment along with powerful security, access control and operational features. Learn more about the deployment architecture here.
Deployment is largely automated. Once the cluster and environment are in place, the entire SPAR subsystem — the Mapper Partner API, the Beneficiary Portal API, the PostgreSQL database/role and the Keycloak client — installs from a single Helm chart (spar) via the Rancher UI. No manual database, Keycloak or post-install configuration is required.
Deployment steps
SPAR installation
After steps 1 and 2, Rancher is up and running, so it is recommended to deploy SPAR from the Rancher UI.
Prerequisites
Infrastructure and environment are created as given above. The commons environment provides the shared services SPAR depends on — PostgreSQL and the Istio gateway. SPAR verifies partner signatures in-process, so it needs no runtime key service.
You have full admin rights to the cluster and the Rancher UI.
Installation
Login to the Rancher console.
Select the cluster and namespace (environment).
Under Apps → Repositories, make sure the OpenG2P charts repository is added — the shared GitLab Helm registry (
https://gitlab.com/api/v4/projects/<CHARTS_PROJECT_ID>/packages/helm/stable), not the oldopeng2p.github.io/openg2p-helmGitHub Pages repo. See Helm & Docker Versioning and CI for the exact URL.Under Apps → Charts, refresh all repositories.
To show moving (pre-release) versions, click your user avatar (top-right) → Preferences → enable Include Prerelease Versions.
Select the "OpenG2P SPAR" chart.
Select the version (3-digit versions denote frozen releases; versions with a
-developtag are moving versions).On Install Step 1:
select the namespace;
give the installation a name —
sparrecommended (the database and role are derived from this name);select Customize Helm options before install;
Next.
On the Helm Options page, disable the
waitflag, then Install.Wait for all pods to come up successfully (
Running/Completed).
Post install check
With the default hostnames shown (namespace trial):
Open
https://spar.<namespace>.openg2p.org/api/mapper/docs— the SPAR Mapper Partner API Swagger UI should load.Open
https://beneficiary.<namespace>.openg2p.org/api/bene-portal/docs— the Beneficiary Portal API Swagger UI should load.
The bare API base path (e.g. /api/mapper/) returns a 404 by design — there is no route there. Use /docs, or a specific endpoint.
Reference
Helm Chart — what the chart contains, all parameters, and the command-line install option (for advanced / developer use).
Keycloak Client — why the OIDC client is required and how it is created.
Teardown / Uninstall — completely remove a release.
Last updated
Was this helpful?