Deploy Data Sync service API (cloud)
Use these steps to install the NBS 7 Data Sync service API in your cloud environment.
On this page
Prerequisites
-
Locate the NND Service Helm chart in the NEDSS-Helm repository. Provide values for ECR repository, ECR image tag, database server endpoints, and ingress host in the
values.yamlfile. -
Confirm that the following DNS entry was created and points to the Network Load Balancer (NLB) in front of your Kubernetes cluster (make sure this is the active NLB provisioned in the base install steps). Do this in your authoritative DNS service, such as Route 53. Replace
example.comwith the appropriate domain name in thevalues.yamlfile. NND service application, for example:data.example.com
Configure values and install
-
Update the image repository and tag with the following:
image: repository: "quay.io/us-cdcgov/cdc-nbs-modernization/nnd-service" pullPolicy: IfNotPresent tag: <release-version-tag> e.g v1.0.1 -
Update the values file with JDBC connection values in the following format. The
dbservervalue is only a database server endpoint. Do not include the port number.
jdbc: dbserver: "EXAMPLE_DB_ENDPOINT" username: "EXAMPLE_ODSE_DB_USER" password: "EXAMPLE_ODSE_DB_USER_PASSWORD" -
Update
values.yamlto populateefsFileSystemId, which is the EFS file system ID from the AWS console.
efsFileSystemId: "EXAMPLE_EFS_ID" -
Provide the Keycloak auth URI in
values.yamlas shown below. In the default configuration, this value should not change unless the name or namespace of the Keycloak pod is modified.authUri: "http://keycloak.default.svc.cluster.local/auth/realms/NBS" -
Run the following command to install
nnd-service.helm install nnd-service -f ./nnd-service/values.yaml nnd-service -
Check whether the
nnd-servicepod is running by usingkubectl get pods.
Validate the deployment
-
Validate the service by accessing:
https://<data.EXAMPLE_DOMAIN>/extraction/actuator/info https://<data.EXAMPLE_DOMAIN>/extraction/actuator/health -
Swagger is disabled by default (usually in production). To enable Swagger for testing, specify or overwrite
springBootProfilewith'dev'undercharts/nnd-service/values.yaml.https://<data.EXAMPLE_DOMAIN>/extraction/swagger-ui/index.html#/