4.3 Install MicroTx

Use Helm charts to install MicroTx on a Kubernetes cluster.

  1. Navigate to the helmcharts folder.
    cd installation_directory/MicroTx-RELEASE/deployment-descriptors/helmcharts
  2. Deploy MicroTx using the configuration details provided in the values.yaml file. Run the following command to install MicroTx Workflows, MicroTx Distributed Transactions coordinator, and MicroTx console in the otmm namespace.

    Syntax

    helm install <release name> --namespace <namespace> <chart directory> --values <values.yaml>

    Sample Command

    helm install tmm-app --namespace otmm tmm/ --values microtx/values.yaml

    Where,

    • tmm-app is the name of the application that you want to create.
    • otmm is the namespace in Kubernetes cluster, where you want to install MicroTx.
    • installation_directory/MicroTx-RELEASE/deployment-descriptors/helmcharts/microtx folder contains the chart.yaml file for MicroTx.
    • installation_directory/MicroTx-RELEASE/deployment-descriptors/helmcharts/microtx folder contains the values.yaml file, the application's manifest file, in your local machine. This file contains the deployment configuration details of MicroTx and the console.
    The following message is displayed.
    NAME: tmm-app
    LAST DEPLOYED: Tue Apr 19 21:14:25 2022
    NAMESPACE: otmm
    STATUS: deployed
    REVISION: 1
    TEST SUITE: None
  3. Verify that all resources, such as pods and services, are ready. Use the following command to retrieve the list of resources in the namespace otmm and their status.
    kubectl get all -n otmm

    Sample response

    Some of the values may be truncated with … for the sake of readability. When you run this command in your environment, you will see the entire value.

    NAME 				READY STATUS 	RESTARTS AGE
    pod/otmm-console-7c6b-j6k 	2/2   Running 	0 	 38s
    pod/otmm-tcs-0 			2/2   Running	0 	 38s
    pod/workflow-server-f8b7-sq84 	2/2   Running 	0 	 38s
    
    NAME 			TYPE 	  CLUSTER-IP 	EXTERNAL-IP PORT(S) 	      AGE
    service/otmm-console    ClusterIP 10.96.31..... <none>	    5001/TCP,5002/TCP 38s
    service/otmm-tcs        ClusterIP 10.96.22..... <none>      9000/TCP 38s
    service/workflow-server ClusterIP 10.96.14..... <none>      9010/TCP 38s
    
    NAME 				READY UP-TO-DATE AVAILABLE AGE
    deployment.apps/otmm-console    1/1   1 	 1 	   38s
    deployment.apps/workflow-server 1/1   1 	 1         38s
    
    NAME 				      DESIRED   CURRENT READY   AGE
    replicaset.apps/otmm-console-7c656b   1 	1 	1 	38s
    replicaset.apps/workflow-server-f8bf7 1 	1 	1 	38s
    
    NAME 			  READY 	   AGE
    statefulset.apps/otmm-tcs   1/1 	    38s

When you install MicroTx using Helm, Helm deploys MicroTx Workflows, MicroTx Distributed Transactions transaction coordinator, MicroTx console in separate pods. After the installation is complete, you can access the services.