10.6 Update

Use this command to update one or more property values that you have defined for MicroTx in its values.yaml file. You can update the properties for the authorization, authentication, transaction store, encryption key, and transaction token, transaction time out, and other details.

  1. In any text editor, create a YAML file. Specify the values that you want to update in the YAML file.

    The following code sample shows the updated value for logging level.

    logging:
        level: warning
  2. Run the following command to update the properties of the Kubernetes cluster on which you have installed MicroTx.

    Syntax

    helm upgrade <release name> --namespace <namespace> --reuse-values --values <file_name.yaml> <chart directory>

    Specify the reuse-values option to modify only those values that you specify in the YAML file, while retaining all the other values as is. For information about the general command parameter and command options, see General Syntax of Commands.

Example

The following command updates the Kubernetes cluster in the omtm namespace with the details mentioned in the update_log_level.yaml file.

helm upgrade omtm --namespace omtm --reuse-values --values update_log_level.yaml omtm/

Usage Notes

Helm performs rolling upgrade. Old replicas are gradually removed, while new replicas are started. Traffic is gradually shifted to the new replicas from old replicas and the old replicas are terminated only when all the traffic has been shifted to the new replicas. This ensures that there is no loss of in flight transactions.