Skip to content

Set up Platform Mesh locally ​

Use this how-to to bring up a local Platform Mesh environment on a Kind cluster. The result is a running portal, kcp endpoint, and the Platform Mesh runtime components needed to follow the tutorials.

Development preview

The local setup is intended for evaluation and development. It differs from production deployments in architecture, security configuration, and scalability.

Track progress and upcoming improvements on the project dashboard.

Prerequisites ​

Allocate at least 8 GB RAM and 6 CPUs to your container runtime.

Install:

  • Docker or Podman
  • Kind
  • kubectl
  • Helm
  • git
  • openssl
  • base64
  • mkcert
  • jq
  • yq

Install the kubectl-kcp plugin if you want to run the example-data setup later.

Task and Go are optional. They are only needed when using the Task command below; the setup script can be run directly.

WSL2 users

WSL version 2.1.5 or higher is required with Docker Desktop WSL2 integration enabled. See the v0.4.0 local setup README for mkcert details.

macOS Podman users

Set KIND_EXPERIMENTAL_PROVIDER=podman before running the setup.

Clone the setup repository ​

bash
git clone --branch 0.4.0 --depth 1 https://github.com/platform-mesh/helm-charts.git
cd helm-charts

Run the setup ​

Run the setup script directly. If you have Task and Go installed, you can use the optional Task command instead.

bash
PLATFORM_MESH_VERSION=0.4.0 ./local-setup/scripts/start.sh --sharded
bash
PLATFORM_MESH_VERSION=0.4.0 task local-setup

Run these commands from the helm-charts repository root. The Task command asks for confirmation and deletes an existing platform-mesh Kind cluster before reinstalling. The direct script reuses an existing cluster if one is present.

Local-source development

The v0.4 setup supports iteration only when building the Platform Mesh aggregate from the checked-out source. Omit PLATFORM_MESH_VERSION and use the v0.4 flag syntax:

bash
./local-setup/scripts/start.sh --iterate --sharded

Do not combine PLATFORM_MESH_VERSION with --iterate; v0.4 rejects that combination.

When the setup completes, it prints Installation Complete and shows the portal access details.

Setup duration

The initial setup typically takes 5-10 minutes, depending on network speed and machine performance.

Access the local services ​

Open:

  • Onboarding Portal: https://portal.localhost:8443
  • kcp API: https://localhost:8443

No hosts file configuration required

Modern browsers resolve *.localhost domains to 127.0.0.1, so organization subdomains like <organization-name>.portal.localhost work without /etc/hosts changes.

Certificate trust

The setup uses local certificates generated by mkcert. If the browser shows a certificate warning, run mkcert -install or see Troubleshoot local setup.

Verify the runtime components ​

The local setup deploys the Platform Mesh operator and the runtime components it manages. Key components include:

  • Platform Mesh operator
  • Portal
  • Kubernetes GraphQL gateway
  • kcp
  • OpenFGA
  • Keycloak
  • Account operator
  • Extension manager operator

For the architecture behind these components, see Architecture. For the exact component set per release, see Platform Mesh runtime.

EU and German government funding logos

Funded by the European Union – NextGenerationEU.

The views and opinions expressed are solely those of the author(s) and do not necessarily reflect the views of the European Union or the European Commission. Neither the European Union nor the European Commission can be held responsible for them.