Preparing Your Registered K8s UI Cluster to Provide Brands at Exclusive IP Addresses

This is an optional step of the Deploying UI Cluster in the Cloud Using Kubernetes procedure. You will need this step if you use exclusive IP addresses for brands on your current installation and you wish to preserve this configuration.

To prepare your registered K8s UI Cluster to provide brands on external IP addresses:

  1. Find the internal resource group of AKS cluster.

    The name of the resource group has the next format: MC_ResourceGroup_AKSClusterName_Region. For example, the AKS cluster name is my-aks-cluster, the resource group is my-resource-group, the location is West Europe, then the internal resource group name will be MC_my-resource-group_my-aks-cluster_westeurope.

  2. Open the internal AKS resource group: Azure Portal > Resource Groups > MC_my-resource-group_my-aks-cluster_westeurope.

  3. Create a public IP address: Overview > Add. Type the public IP address, select the public IP address from search results and click Create.

  4. Fill in the parameters and click Create:

    • Name: Name (for example, external-ip-mybrand-com)
    • SKU: Basic
    • IP Version: IPv4
    • IP address type: Static
    • Subscription: Your subscription
    • Resource group: Use the existing one (select the internal AKS resource group, for example, MC_my-resource-group_my-aks-cluster_westeurope)
    • Location: Select your location (for example, West Europe)
    • Wait until the IP address is created.

  5. Open the internal AKS resource group and select the Load Balancer resource kubernetes.
  6. Click Frontend IP configuration > Add.
  7. Fill in the name (for example, external-ip-mybrand-com) and select the already created IP address (for example, external-ip-mybrand-com), click Ok.

    Wait until the Front Net IP record is created (task Saving load balancer).

  8. Click Load balancing rules > Add.
  9. Fill in the parameters:

    • Name: Some name (For example: external-ip-mybrand-com)
    • IP Verison: IPv4
    • Frontend IP address: just created address (external-ip-mybrand-com)
    • Protocol: TCP
    • Port: 443
    • Backend port: 443
    • Backend pool: kubernetes
    • Health probe: Select the health probe already created for the shared IP address of kubernetes service. This probe can be detected by the IP port in kubernetes:

      {{kubectl get service branding-ui-cluster-ui -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}' }}
    • Session persistence: Client IP
    • Floating IP: Enabled
    • Wait until the load balancer pool is created.

  10. Create an IP pool in Odin Automation containing these addresses. For details, refer to Adding New IP Pool.
  11. Attach the IP pool to the virtual host of your UI Cluster. For details, refer to Adding New IP Pool.

During the provisioning of brands with exclusive IP addresses, a new external IP address will be assigned to the K8s UI service.

Related topics: