Kubernetes
Requirements
Ensure your Kubernetes cluster meets the minimum requirements of 4 CPUs and 8 GiB of memory for this tutorial.
You either have to run a standalone database instance or make sure standard PersistentVolumeClaim
exists in your cluster.
Installation steps
Step 1: Obtain UI Bakery Kubernetes Configs
UI Bakery configs are available in https://github.com/uibakery/self-hosted repository in kubernetes
folder.
You can download the repository with the following command:
Step 2: Fill the required environment variables
By default, all variables are defined in ui-bakery-configmap.yaml
. To run UI Bakery you need to provide the following variables:
UI_BAKERY_APP_SERVER_NAME
- your {server ip address}:3030, for examplehttp://123.123.123.123:3030;
UI_BAKERY_LICENSE_KEY
- get it from the UI Bakery team;
Step 3: Apply configuration on the cluster
Run kubectl apply -f .
in the kubernetes
folder. Please note that the application will be exposed on a public IP address on port 3030.
Configuring UI Bakery
Once you've completed the installation steps, the UI Bakery app will be deployed on your cluster. You can sign up to test the installation. To prepare UI Bakery for production, further configuration is required.
Setup standalone databases
UI Bakery comes with MySQL and Postgres databases defined in ui-bakery-database.yaml
and ui-bakery-internal-database.yaml
. It's recommended to migrate these databases to a managed solution or ensure they are secure and backed up. If you don't use the Bakery Database feature, you can delete ui-bakery-internal-database.yaml.
Configure secrets
We recommend storing sensitive environment variables' values in Secrets instead of ConfigMap.
Use the following guide to generate the secrets for the following variables:
Configure domain name and HTTPS
After setting up Ingress, update UI_BAKERY_APP_SERVER_NAME
environment variable to https://yourdomain.com
.
Last updated