Table of contents
Deploy Modernization API via helm chart
- The helm chart for modernization should be available under charts/modernization-api.
- In the values.yaml file, replace all occurrences of app.EXAMPLE_DOMAIN with the URL of your modern app and app-classic.EXAMPLE_DOMAIN with the URL of your existing NBS 6 as shown in the Table.
- Ensure the image repository and tags are populated with the following:
image: repository: "quay.io/us-cdcgov/cdc-nbs-modernization/modernization-api" tag: <release-version-tag> e.g v1.0.1
- Populate the jdbc section (refer Table - 5) in the values file in the following format
jdbc: connectionString: "jdbc:sqlserver://EXAMPLE_DB_ENDPOINT:1433;databaseName=NBS_ODSE;user=DBUsername;password=DBPassword;encrypt=true;trustServerCertificate=true;" user: "EXAMPLE_DB_USER" password: "EXAMPLE_DB_USER_PASSWORD"
- Verify page-builder is disabled
pageBuilder: enabled: "false"
- Update token secret and parameter secret to encrypt JWT (use token secret generated for pagebuilder-api above, generate parameter secret with openssl rand -base64 32 | cut -c1-32 )
security: tokenSecret: "EXAMPLE_TOKEN_SECRET" parameterSecret: "EXAMPLE_PARAMETER_SECRET"
- Verify OIDC is enabled for keycloak login authentication
Oidc: enabled: "true"
- Verify search view and table view are enabled
search: view: enabled: true table: enabled: true
- Verify extended patient data is enabled
patient: add: extended: enabled: true
- After updating the values file, run the following command to install modernization API.
helm install modernization-api -f ./modernization-api/values.yaml modernization-api
- To check ingress for RTR services
kubectl describe ingress main-ingress-resource
- IMPORTANT: Confirm the pod is running before proceeding with the next deployment using the below command. If the pod is still creating (or in any other state other than running), wait and/or troubleshoot.
kubectl get pods