A Liferay DXP Helm chart for Kubernetes
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:
brew install kubernetes-cli
)brew install helm
)brew install k3d
)brew install stern
)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"
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.
If the value ingress.enabled
is true
there should be 3 preset addresses available:
DXP: http://main.dxp.docker.localhost
The default user name and password are test@main.dxp.docker.localhost
: test
.
Object Storage (MinIO Server - S3):
The default user name and password are objectstorage
: objectstorage
.
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.
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:
two.dxp.docker.localhost
two.dxp.docker.localhost
two.dxp.docker.localhost