Skip to content

Latest commit

 

History

History
58 lines (37 loc) · 2.9 KB

File metadata and controls

58 lines (37 loc) · 2.9 KB

Step 6 - Deploy the Registrations REST API Server

  1. Go to the nextjs-app-with-kyma-eventing/registrations-rest-api folder.

    cd registrations-rest-api
  2. Download the PEM file and place it within the /registrations-rest-api folder. The certificate (DigiCertGlobalRootCA.crt.pem) can be downloaded in 'pem-format' from digicert. Here is the direct link to download the file.

    Note: After downloading the file, rename it to DigiCertGlobalRootCA.pem

    Please see SAP Help. The certificate is signed by 'DigiCert Global Root CA' with a certificate thumbprint (SHA1): A8:98:5D:3A:65:E5:E5:C4:B2:D7:D6:6D:40:C6:DD:2F:B1:9C:54:36

  3. Build the docker image of the registrations-rest-api microservice.

    docker build . -t <docker-username>/registrations-rest-api -f Dockerfile

    Note: Replace <docker-username> with your username

  4. Push the docker image of the registrations-rest-api microservice to your Container Image Library.

    docker push <docker-username>/registrations-rest-api

    Note: Replace <docker-username> with your username

  5. Update the docker image in the ./registrations-rest-api/k8s/deployment.yaml file.

    Note: Replace <docker-username> with your username

  6. Update the values of the HANA_DB_USER, HANA_DB_PASSWORD, HANA_DB_HOST & HANA_DB_PORT environment variables in the ./registrations-rest-api/k8s/secret.yaml file.

    The host and port can be got from the SAP HANA Cloud screen of your subaccount in the BTP cockpit (Cloud Foundry > Spaces > dev > SAP HANA Cloud > tech-conference-db > Actions > Copy SQL Endpoint).

  7. Go back to the parent folder (i.e. nextjs-app-with-kyma-eventing folder).

    cd ..
  8. Create/update Kubernetes resources of the registrations-rest-api microservice.

    kubectl apply -f ./registrations-rest-api/k8s/secret.yaml
    kubectl apply -f ./registrations-rest-api/k8s/deployment.yaml
    kubectl apply -f ./registrations-rest-api/k8s/service.yaml
  9. Verify that the secret, deployment and service were created by going to the specific screens in the Kyma console.

Navigation

🏠 ◀️ Setup : Step 5 - Create an instance of SAP HANA Cloud ▶️ Setup : Step 7 - Connect your web app running on Kyma Runtime to a domain via Cloudflare