Guides
R24 AMR | Min(s) read

Pre-Installations for DES

The following pre-installations are performed before AKS creation.

  • Transact pods to be deployed in AKS.
  • DES database details are required.
  • Azure Event Hub to be created and details like primary key, and connection strings are to be noted which would be used when installing DES.

Setting up Third-Party Services

Perform the following steps to install third-party services after the availability of Azure resources.

If Kafka, Zookeeper, and Schema registry is already available as a part of the installation, then skip the step 4 and 5.
  1. Create Event Hub in Azure resources manually using the portal or Azure CLI command below. Attached is a sample des_eventhub.json for reference. For all the required topics to be created, read the release notes section 4.3 in the DES release package.
  2. az group deployment create -g <<Resource group>> --template-file <<path to des_eventhub.json>>
    az group deployment create -g FRONT2BACK2-aks --template-file des_eventhub.json

  3. Execute the commands below to get the values of environment variables related to the event hub for creating a connection between DES and Event Hub.
    • Event Hub Shared Access Key
    • az eventhubs namespace authorization-rule keys list -g $(shared.aksResourceGroup) --namespace-name

      $(eventhubNamespace) --name RootManageSharedAccessKey --query primaryKey -o tsv

      az eventhubs namespace authorization-rule keys list -g FRONT2BACK-aks --namespace-name front2backdeshubHA --name RootManageSharedAccessKey --query primaryKey -o tsv export EVENT_HUB_SHARED_ACCESS_KEY=<<value obtained from above execution>>
    • Event Hub Connection URL
    • az eventhubs namespace authorization-rule keys list -g $(shared.aksResourceGroup) --namespace-name

      $(eventhubNamespace) -n RootManageSharedAccessKey --query "primaryConnectionString" -o tsv

      az eventhubs namespace authorization-rule keys list -g FRONT2BACK-aks --namespace-name front2backdeshubHA -n RootManageSharedAccessKey --query "primaryConnectionString" -o tsv export EH_CONNECTION_URL=<<value obtained from above execution>>
    • Event Hub CI shared access key
    • az eventhubs namespace authorization-rule keys list -g $(shared.aksResourceGroup) --namespace-name

      $(eventhubNamespaceCI) -n RootManageSharedAccessKey --query primaryKey -o tsv

      az eventhubs namespace authorization-rule keys list -g FRONT2BACK-aks --namespace-name front2backdeshubCIHA -n RootManageSharedAccessKey --query primaryKey -o tsv export EVENT_HUB_CI_SHARED_ACCESS_KEY=<<value obtained from above execution>>
    • Event Hub CI connection URL
    • az eventhubs namespace authorization-rule keys list -g $(shared.aksResourceGroup) --namespace-name $(eventhubNamespaceCI) -n RootManageSharedAccessKey --query "primaryConnectionString" -o tsv

      az eventhubs namespace authorization-rule keys list -g FRONT2BACK-aks --namespace-name front2backdeshubCIHA -n RootManageSharedAccessKey --query "primaryConnectionString" -o tsv export EVENT_HUB_CI_CONNECTION_URL=<<value obtained from above execution>>
  4. Go to SQL-managed instances and get the database host details, database name, username, and password for Transact and DES databases. The same details are used to construct the database-related properties that can be overridden using setters (--set) when installing DES using helm.
  5. If third-party helm charts are not available in the des-docker/src/helm/3rdParty folder, then execute the command below to start the third-party services, such as Kafka and Schema registry.

    az acr helm repo add -n $(crName)

    helm repo add confluentinc https://confluentinc.github.io/cp-helm-charts/ helm repo update

    helm upgrade kafka-oss confluentinc/cp-helm-charts --install --version 0.5.0 -n kafka

  6. The charts available in the des-docker/src/helm/3rdParty folder are a copy of confluent helm charts and uses the community edition of confluent images. If confluent images are pushed to a local registry, run the command below.

    helm install kafka-oss 3rdParty/cp-helm-charts --version 0.5.0 -n kafka \

    --set cp-zookeeper.image=<<ACRNAME>>/cp-zookeeper \

    --set cp-zookeeper.imageTag=5.2.2 \

    --set cp-kafka.image=<<ACRNAME>>/cp-kafka \

    --set cp-kafka.imageTag=5.2.2 \

    --set cp-schema-registry.image=<<ACRNAME>>/cp-schema-registry \

    --set cp-schema-registry.imageTag=5.2.2 \

    --create-namespace

    ACRNAME is a container registry where images are available. For example, ctsdev.azurecr.io.

The third-party services are installed successfully.

Copyright © 2020- Temenos Headquarters SA

Published on :
Thursday, May 30, 2024 11:58:52 AM IST