Liferay Helm Chart

A Liferay DXP Helm chart for Kubernetes

View the Project on GitHub LiferayCloud/liferay-helm-chart

For Local Development

Use this approach when you want to deploy Liferay DXP into a local Kubernetes cluster so you can use and explore the features of DXP in a cloud native configuration.

Required tools:

Setup a local Kubernetes cluster

The simplest and most comprehensive approach is to use K3d because it supports built-in ingress and seamlessly integrates with Docker’s hostname resolution for addresses with the suffix *.docker.localhost. (not tested on MacOS or Windows yet)

k3d cluster create playground -p "80:80@loadbalancer"

Install the Chart

It is recommended to install the chart into a custom namespace. In this document the namespace used is liferay-system.

helm upgrade -i liferay -n liferay-system --create-namespace liferay/liferay

The chart can also be installed from a local clone of the repository:

git clone https://github.com/LiferayCloud/liferay-helm-chart.git
cd liferay-helm-chart
helm upgrade -i liferay -n liferay-system --create-namespace .

Note: By default the chart will use the liferay/dxp:latest docker image.

How to Gain Access

If the value ingress.enabled is true there should be 3 preset addresses available:

Basic Observation of the Chart

If you want to watch the progress of the chart the following simple command works well:

watch -n .5 kubectl get -n liferay-system all,svc,cm,pvc,ingress

As resources come, go and update their status the output will adjust accordingly.

Additional Virtual Hosts

If you create additional virtual instances in DXP select a hostname deriving from *.dxp.docker.localhost and specify that value for each of WebId, Virtual Host and Mail Domain. Once the Virtual Instance is created that host should be reachable without further action.

e.g. create a new host using:

Recipes