Kubernetes
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
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.
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:
git clone https://github.com/uibakery/self-hosted.git
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 example http://123.123.123.123:3030;
UI_BAKERY_LICENSE_KEY
- get it from the UI Bakery team;
Run kubectl apply -f .
in the kubernetes
folder. Please note that the application will be exposed on a public IP address on port 3030.
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.
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.
We recommend storing sensitive environment variables' values in Secrets instead of ConfigMap.
Use the following guide to generate the secrets for the following variables:
UI_BAKERY_JWT_SECRET
UI_BAKERY_JWT_REFRESH_SECRET
UI_BAKERY_JWT_SERVICE_ACCOUNT_SECRET
UI_BAKERY_CREDENTIALS_SECRET
UI_BAKERY_MFA_SECRET
After setting up Ingress, update UI_BAKERY_APP_SERVER_NAME
environment variable to https://yourdomain.com
.