On this page

  1. Deploy Modernization API via helm chart

Deploy Modernization API via helm chart

  1. The helm chart for modernization should be available under charts/modernization-api.
  2. 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.
  3. 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
    
  4. Populate the jdbc section (refer Table) in the values file in the following format

    jdbc:
      connectionString: "jdbc:sqlserver://EXAMPLE_DB_ENDPOINT:1433;databaseName=EXAMPLE_DB_NAME;user=EXAMPLE_ODSE_DB_USER;password=EXAMPLE_ODSE_DB_USER_PASSWORD;encrypt=true;trustServerCertificate=true;"
      user: "EXAMPLE_ODSE_DB_USER"
      password: "EXAMPLE_ODSE_DB_USER_PASSWORD"
    
  5. Verify page-builder is disabled

    pageBuilder:
      enabled: "false"
    
  6. 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"
    
  7. Verify OIDC is enabled for keycloak login authentication

    Oidc:
      enabled: "true"
    
  8. After updating the values file, run the following command to install modernization API.

    helm install modernization-api -f ./modernization-api/values.yaml modernization-api
    
  9. To check ingress for RTR services

    kubectl describe ingress main-ingress-resource
    
  10. 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

Back to top

© Centers for Disease Control and Prevention (CDC). All Rights Reserved.