For the complete documentation index, see llms.txt. This page is also available as Markdown.

Helm Setup

Prerequisites: Kubernetes cluster (min. 3 nodes), Helm, kubectl, ingress-nginx, a Postgres DB (for both Keycloak and the registry), and optionally ElasticSearch, Kafka, Redis, Minio. See the High-Level Architecture page for what each optional service is for.

1

Clone the repo and pre-check the cluster

git clone https://github.com/Sunbird-RC/devops.git
cd devops/deploy-as-code/helm/v1
kubectl cluster-info
kubectl get nodes
kubectl get ns
helm version

Create a namespace:

kubectl create ns demo-registry
2

Create secrets

Base64-encode all passwords/secrets and set them in values.yaml:

Secret
Required
Purpose

DB_PASSWORD

Yes

Postgres database password

KEYCLOAK_ADMIN_PASSWORD

Yes

Keycloak admin console password

KEYCLOAK_DEFAULT_USER_PASSWORD

Yes

Default password for new users created by the registry

MINIO_SECRET_KEY

No

Minio secret key

ELASTIC_SEARCH_PASSWORD

No

ElasticSearch connection password

KEYCLOAK_ADMIN_CLIENT_SECRET

No

Client secret of the Keycloak admin client for the registry

3

The passwords listed in the values.yaml should be updated.

4

Configure values, schemas and signing keys

Modify the configuration values — database address, ElasticSearch address, etc. — in values.yaml.

Place schema files at devops/deploy-as-code/helm/v1/helm_charts/charts/registry/schemas.

Configure signing keys (a sample key ships by default — replace it before going live):

5

Deploy

helm upgrade --install --namespace=demo-registry demo-registry helm_charts --create-namespace
kubectl get pods -n demo-registry
6

Import the Keycloak realm and set the secret

Via the admin console (<host>/auth/): Master → Add realm → import imports/realm-export.json.

Then Clients → admin-api → Credentials → Regenerate Secret → copy it, base64-encode it, and set KEYCLOAK_ADMIN_CLIENT_SECRET via kubectl edit secret rc-secret -n demo-registry. Then:

kubectl rollout restart deploy/demo-registry -n demo-registry
kubectl get pods -n demo-registry
7

Check the registry APIs

Open <host>/registry/api/docs/swagger.json in a browser.

Last updated