Private Mendix Platform Quick Start Guide
Introduction
This document provides a comprehensive guide for installing Private Mendix Platform, along with its optional components, in your own Kubernetes environment.
Prerequisites
Private Mendix Platform depends on Mendix for Private Cloud for the installation and deployment of Mendix apps.
Before starting the installation process, make sure that you have all the necessary prerequisites:
-
A Kubernetes instance where the target namespace has already been created. For more information, see Supported Providers: Supported Versions.
-
A PostgreSQL 12 database.
-
File storage. For more information, see Supported Providers: File Storage.
-
A registry. For more information, see Supported Providers: Container Registries.
-
A domain.
-
For the PCLM component:
- Mendix Operator in version 2.11.0 or above
- A dedicated Postgres or SQLServer database server with public accessibility set to Yes.
-
Optionally, if your Private Mendix Platform app requires its own certificate: a TLS certificate with HTTPS support.
-
An environment to run installer tools with the following requirements:
- A kubeconfig file with administrator privileges for your Kubernetes or OpenShift platform
- A command line terminal that supports the console API and mouse interactions. In Windows, this can be PowerShell or the Windows Command Prompt.
- For OpenShift clusters, OpenShift CLI. For more information, see Getting started with the CLI.
- Kubectl installed if you are deploying to another Kubernetes platform. For more information, see Install and Set Up kubectl.
-
Optionally, if you plan to install the Svix component:
- An existing PostgreSQL database instance.
- An optional Redis server version 6.2.0 or higher, for the task queue and cache. Using Redis is recommended for high availability, where you expect a high volume of webhook calls, or if you have multiple Svix servers. As a best practice, enable persistence in Redis so that tasks are persisted across Redis server restarts and upgrades.
Installing and Configuring the Mendix Operator
To install and configure the Mendix Operator, perform the following steps:
-
Download the release binary from your Private Mendix Platform download portal. If you do not have access to the download portal, contact your Mendix partner for information.
-
Unzip the release binary to a local folder on your Windows or Linux server. The release binary contains the following files:
- Tools - mx-pclm-cli, which can be used to manage PCLM
- helm, and helmfile tools, which are used to deploy and manage Private Mendix Platform charts and Svix charts
- images - Private Mendix Platform image, PCLM image, Svix image, test application image
- Installer - installer tools
- mxpc-cli - installation tools which can be used to manage or configure the Mendix Operator
- charts - charts, including Private Mendix Platform charts and Svix charts
-
Optional: If your clusters can connect to a public registry with a passable network, skip to step 4 below, otherwise initialize the installation by performing the following steps:
-
Upload the images to your private repository in an air-gapped environment.
~/mpp-binary-linux$ ./installer init migrate --help Migrate Mendix Private Platform related image to your own registry Usage: installer init migrate [flags] Flags: -h, --help help for migrate -r, --registryurl string registry url (required) -e, --repo string Repository name -u, --username string Username (required) for your private registry
The destination image is named
${registryurl }/${repo}/mendix-private-platform: ${tag}
. -
The
registryurl
andrepo
are read from the input parameters. Thetag
is automatically read by the installer. If the repository does not exist, you must create it before running theinit migrate
command.~/mpp-binary-linux$ ./installer init migrate -r [registry] -u user -e [repositoryName] Please enter user password: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** Confirm password: ****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** the config checksum is empty The image destination[REDACTED] svix-server:v0.75.0 The image destiation [REDACTED] mendix-private-platform:1.4.0.80d447b1 the config checksum is empty The image destiation [REDACTED] mxpc-test:1.0 the config checksum is empty The image destiation [REDACTED] privatecloud-license-manager:0.3.0 svix-server_v0.75.0 => [REDACTED] svix-server:v0.75.0 - ok mendix-private-platform_1.4.0.80d447b1 => [REDACTED] mendix-private-platform:1.4.0.80d447b1 - ok mxpc-test_1.0 => [REDACTED] mxpc-test:1.0 - ok privatecloud-license-manager_0.3.0 => [REDACTED] privatecloud-license-manager:0.3.0 - ok
-
By default, mxpc-cli tools install the latest version of Mendix Operator. You can specify a different Mendix Operator version by using the following command:
./installer operator init -v="version number"
-
-
Perform the base installation by doing the following steps:
-
Run the following command, where
-n
indicates the namespace:./installer operator configure -n=<namespace name>
-
Click Base Installation, and then set the following settings:
- Cluster Mode – Select standalone.
- Cluster Type – Select openshift or generic.
-
Click Run Installer to install the Mendix Operator in your cluster.
-
-
Configure the namespace by doing the following steps:
-
Click Configure Namespace.
-
Click Database Plan and fill out the required information.
-
Click Storage Plan and fill out the required information.
-
Click Ingress and fill out the required information.
-
Click Registry and fill out the required information.
-
Click Review and Apply > Evaluate Configuration.
-
Make any required changes or click Apply Configuration.
-
Click Exit Installer > OK.
-
Installing Private Cloud License Manager
Private Cloud License Manager is a required component of Private Mendix Platform. Before you install the Platform, install PCLM by doing the following steps:
-
Run the command
./installer component -n=<namespace name>
, where-n
indicates a namespace. The namespace must be the same as the namespace that you plan to use for Private Mendix Platform. -
Select PCLM to install PCLM.
-
Specify the following parameters:
- Databasetype – The database type, either postgres (default) or sqlserver.
- Host – The host name of the database service.
- DBName – The name of the database where you want to hold the PCLM data.
- DBUser – A database user with the rights described in the prerequisites section.
- DBPassword – The password for the database user.
- port – The port used to access the database. The default value is 5432.
- Strict TLS – Whether the database uses strict TLS. The default value is false.
- ssl Cert File – If Strict TLS is set to true, provide the location of the SSL Root certificate file. If Strict TLS is set to false, leave this field blank.
- ImageRepo – The location of the image repo, for example,
private-cloud.registry.mendix.com/privatecloud-license-manager
- ImageTag – The docker image tag, for example,
0.3.0
. - Admin password – A new PCLM admin password. When the PCLM server is set up, it contains an administrator user with a default password. This password should be modified immediately.
- PCLM Operator User – A new PCLM operator user.
- PCLM Operator Password – A new PCLM operator password.
-
Click Install PCLM.
Optional: Installing the Svix Component
Svix is required if you want to use webhooks. Install the Svix component by doing the following steps:
-
Optional: If you are using a self-signed TLS certificate, build and deploy a private Svix server with custom self-signed TLS certification by performing the following steps:
-
Prepare the following Docker file to build a private Svix server image:
# Base build FROM svix/svix-server:v1.25.0 # Add customer certification into system cert trust chain COPY ./customer.crt /usr/local/share/ca-certificates/ USER root RUN update-ca-certificates # Start svix service USER appuser CMD \ set -ex ; \ if [ ! -z "$WAIT_FOR" ]; then \ WAIT_FOR_ARG="--wait-for 15"; \ fi ; \ exec svix-server --run-migrations $WAIT_FOR_ARG
-
Build your private Svix server image with the above Docker file and your self-signed TLS certificate file by running the following command:
docker build -t {customer-private-image-registry-url}/svix/svix-server:v1.25.tls
-
Push your private Svix server image to your private image registry by running the following command:
docker push {customer-private-image-registry-url}/svix/svix-server:v1.25.tls
-
-
Run the command
./installer component -n=<namespace name>
, where-n
indicates a namespace. The namespace must be the same as the namespace that you plan to use for Private Mendix Platform. -
Select Svix, and then specify the following parameters:
- POSTGRES_DSN - A Postgres DSN, for example,
postgresql://postgres:postgres@pgbouncer/postgres
. - Image - The Svix image path. The default path is
svix/svix-server:v1.25.0
. If you are using a self-signed TLS certificate, set this path to{customer-private-image-registry-url}/svix/svix-server:v1.25.tls
. - Use Redis - Optional. Select this check box if you want to use Redis for message cache and queues.
- REDIS_DSN - The Redis DSN, for example,
redis://redis:6379
. This field is only available if you select the Use Redis check box.
- POSTGRES_DSN - A Postgres DSN, for example,
-
Click Install Svix or Upgrade Svix.
Installing the Private Mendix Platform
Install the Private Mendix Platform by doing the following steps:
-
Run the command
./installer platform -n=<namespace name>
, where-n
is the same namespace as the one where you installed Svix and PCLM. -
Click Configure Namespace.
-
Click Configure, and then specify the following parameters:
- AppName - The default app name is
mxplatform
. You can change it as required. - DatabasePlan/Storageplan - The name of the plan that you created previously.
- AppUrl - The endpoint where you can connect to your running app. It must be a URL which is supported by your platform. If you leave it blank, Mendix Operator will create it.
- EnableTLS - Allows you to enable or disable TLS for the Mendix app’s Ingress or OpenShift Router. The default value is use the default settings.
- TLS option - Allows you to use an existing
kubernetes.io/tls
secret containing the TLS certificate, or to provide thetls.crt
andtls.key
values directly. - TLS Secret - An existing
kubernetes.io/tls
secret containing the TLS certificate. Cannot be used together with certificate and key. If you leave it blank, the default TLS certificate from the Ingress Controller or OpenShift Router will be used. - TLS certificate and TLS key – Allows you to provide the
tls.crt
andtls.key
values directly (not recommended for production environments). Cannot be used together with secretName. - SourceUrl - The location of the deployment package, in the format
oci-image://<your image location>
. This location must be accessible from your cluster. - Replicas – By default one replica will be started when you deploy your app.
- AppName - The default app name is
-
Click Runtime, and then specify the following parameters:
- MxAdminPassword - The password for the admin user. It must have at least one number, one upper case letter, one lower case letter and one symbol, with a minimum length of 12 characters.
- dtapmode - For the development of the app, for example acceptance testing, select D. For production deployments, select P. If integrated with PCLM, you can keep the value as D.
- License Id/Secret - Offline LicenseId (UUID) value provided by Mendix Support.
-
In the Enabled Functions section, select or clear the functions that you want to enable or disable:
- Persist Config - When enabled, this setting locks the Private Mendix Platform configuration, so that it can no longer be modified from the user interface.
- Project Management - Recommended. Enables you to create and manage your app projects. Enables app projects and related settings across the portal. Must be enabled for CI/CD capabilities.
- Marketplace - Recommended. Enables you to use the Private Platform’s Marketplace capabilities to upload, import and manage Marketplace contents. The Marketplace enabled here is hosted entirely within your Private Mendix Platform.
- Marketplace Approvals - Optional. If enabled, contents that users publish to the private Marketplace require administrator approval before publishing.
- Marketplace Import - Optional. Enables content import with an external source.
- IDP - Optional. Enable users to login using SSO by configuring your IdP integration.
- Webhook - Optional. Webhooks allow to send information between platform and external systems, and can be triggered by events around Apps, Users, Groups, Marketplace and CI/CD.
-
Click Review and Apply > Evaluate Configuration.
-
Make any required changes or click Run Test App.
-
After the test installation is completed, keep the installer open so you can reuse the settings and apply them to the installation later.
-
Open the endpoint URL that you configured as the AppURL in step 3 above and verify that you can upload a test file.
-
In the Private Mendix Platform installer, click Apply Configuration.
-
Click OK to remove the test installation and install Private Mendix Platform.
Adding Additional Components After Installing the Private Mendix Platform
To ensure that components such as svix and PCLM work correctly, you should install them before you install the Private Mendix Platform itself. If you want to add a component after the Platform installation (for example, if you want to install svix because you decided to enable webhooks), you must perform the following steps:
- Install the component as described in Installing Private Cloud License Manager and Installing the Svix Component.
- Run the command
./installer platform -n=<namespace name>
, where-n
is the same namespace as the one where you installed Svix and PCLM.
Re-running the installation command ensures that the installer fetches the relevant information from the components that you added.
Upgrading the Private Mendix Platform
If you have installed Private Mendix Platform before, you can upgrade it by doing the following steps:
-
Ensure that your Mendix Operator version is 2.12 or newer.
-
Run the command
./installer platform -n=<namespace name>
, where-n
indicates the namespace where your Private Mendix Platform is installed. -
Click Upgrade Namespace.
-
Verify the following settings:
- Persist Config - When enabled, this setting locks the Private Mendix Platform configuration, so that it can no longer be modified from the user interface.
- Project Management - Recommended. Enables you to create and manage your app projects. Enables app projects and related settings across the portal. Must be enabled for CI/CD capabilities.
- Marketplace - Recommended. Enables you to use the Private Platform’s Marketplace capabilities to upload, import and manage Marketplace contents. The Marketplace enabled here is hosted entirely within your Private Mendix Platform.
- Marketplace Approvals - Optional. If enabled, contents that users publish to the private Marketplace require administrator approval before publishing.
- Marketplace Import - Optional. Enables content import with an external source.
- IDP - Optional. Enable users to login using SSO by configuring your IdP integration.
- Webhook - Optional. Webhooks allow to send information between platform and external systems, and can be triggered by events around Apps, Users, Groups, Marketplace and CI/CD.
-
Click Run Upgrade.
Running the Private Platform Configuration Wizard
After you install Private Mendix Platform, run a one-time configuration wizard to configure the necessary settings.
To start the wizard, log in to your Private Mendix Platform app with the user ID Admin. The wizard starts automatically and walks you through the required configuration steps. For more information about the available options, refer to the sections below.
Configuring IdP Settings
In this step, you can specify whether you want to enable logging in via SSO for your users. Private Mendix Platform supports OIDC and SAML identity providers.
Configuring Management Settings
In this step, you can specify whether you want to create and manage your app projects in Private Mendix Platform. If you enable the project management, you must also specify the Git host that will be used for the project. This option must be enabled if you want your Private Mendix Platform to support CI/CD capabilities.
Configuring CI/CD Settings
In this step, you can enable CI/CD capabilities for your app. If you enable this option, you must also specify your CI system, configure the necessary settings, and register a Kubernetes cluster.
Configuring Marketplace Settings
In this step, you can enable your app to upload and download connectors from the Marketplace.
Configuring Custom Branding Settings
In this step, you can customize the branding for your app. You may change the name that is displayed in the top bar, upload a new logo, or change the default login page image.
Reviewing and Confirming the Settings
After the wizard finishes running, you are logged in to your Private Mendix Platform. The settings that you previously selected are displayed on screen. You can review and update them now, or at a later point by using the Settings menu in the upper left corner of the screen.
Next Steps
After completing the installation and first-time configuration wizard, configure the remaining necessary settings. For more information, see Configuring Private Mendix Platform.