Liferay Cloud Infrastructure

Back to Platform Changelog

HostAlias: Customizing /etc/hosts via LCP.json

Released 09/21/2023

Liferay Cloud now supports custom hostname-to-IP mapping for your applications, providing a seamless method to update the /etc/hosts file of your container pods. This enhancement offers users granular control over networking aspects without compromising infrastructure stability or security.

How it Works

  1. Configurable LCP.json: Liferay Cloud's LCP.json configuration file has been expanded to include the hostAliases property, which lets users define custom hostname-to-IP mappings.

    {
    "hostAliases":[{
    "ip":"10.XX.XX.XXX",
    "hostnames":["customdomain.example.com"]
    }]
    }
    Dynamic Kubernetes Deployment: During deployment, Liferay Cloud processes the hostAliases configuration from LCP.json and appropriately incorporates it into the Kubernetes deployment. Resultantly, every pod arising from this deployment will have its /etc/hosts file updated with the custom hostname-to-IP mapping.
  2. Seamless Integration:

    • For the Customer

On this page