Deploying UI Cluster in the Cloud Using Kubernetes

To deploy the UI Cluster in the cloud using Kubernetes:

  1. To execute the deployment procedure, prepare a node which satisfies the following requirements:
  2. Register a new UI Cluster in Kubernetes.

  3. Allow the connection from the UI node by adding the following line in the /var/lib/pgsql/9.6/data/pg_hba.conf file on the OSS DB replica nodes:

    host   all     all     <IP_address_of_UI_node>/32           md5
  4. Register a virtual node in Odin Automation by calling the following OpenAPI method:

    from poaupdater import openapi
    api = openapi.OpenAPI()
    host_id = api.pem.addK8sUICluster(hclHostname = "branding-ui-cluster-hcl", hclUser = "hcl", hclPassword = "<random-password-to-be-used-to-send-hcl>")

    Important: The branding-ui-cluster Helm chart cannot be reinstalled after adding the branding-ui-cluster-hcl host. This would change the loadbalancer's IP address and make the brands on the branding-ui-cluster-hcl host no longer accessible.

  5. If you use exclusive IP addresses for brands on your current installation and you want to preserve this configuration, perform these migration steps:

    1. Prepare your registered K8s UI Cluster to provide brands at exclusive IP addresses.
    2. Migrate your existing installation with brands to the new K8s UI Cluster.

Extending a Single MN Configuration with an Additional MN

To extend a configuration with a single management node with an additional management node, perform the following actions.

Run the following command to upgrade the existing release:

helm upgrade <name> helm/branding-ui-cluster --version <version> --wait --set ui.ossReplicaHost=<mn-replica-ip_address>

where:

  • name is the Helm chart release name. For the production environment, the release name must be branding-ui-cluster because the branding UI cluster is defined by this name in the distribution definition file and this name is expected by the upgrade script for automatic system updates.
  • version is a version of a chart that supports the configuration with an additional management node. This must be equal to or later than version 8.3.741.

    To output available chart versions, run this command:

    helm search helm/branding-ui-cluster -l
  • mn-replica-ip_address is the IP address of the additional OSS management node.

If a configuration with a single management node was deployed using a chart that supports the configuration with an additional management node, you can upgrade the current chart by specifying the same chart version with the extra option --recreate-pods.

Related topics: