Skip to main content

Infrastructure

OctoMesh needs some infrastructure components to run, that includes

The local infrastructure runs in a kind cluster. kind is the only supported local infrastructure.

docker compose is deprecated

The docker compose setup (Install-OctoInfrastructure, Start-OctoInfrastructure, Stop-OctoInfrastructure, Uninstall-OctoInfrastructure, the backup commands and infrastructure/docker-compose.yml) is deprecated and will be removed on 2026-12-31. Every one of these commands prints a warning. See Migrating from docker compose.

Requirements​

We expect that you use the OctoMesh Profile in PowerShell and that Docker, kind, kubectl and helm are installed.

Set up the local infrastructure (kind)​

Install-OctoKubernetes

The command creates the kind cluster kind with MongoDB, RabbitMQ and CrateDB, the OctoMesh CRDs, ingress and the Communication Operator. It can be run again at any time. An existing CrateDB is upgraded safely: never a downgrade, a snapshot first, and a CrateDB older than 5.10.1 is upgraded through 5.10.16. Uninstall-OctoKubernetes deletes the cluster and its data. The full runbook is in the kubernetes README.

Default Admin credentials​

User: octo-system-admin
Password: OctoAdmin1
Role: root

Docker compose (deprecated)​

The commands below use infrastructure/docker-compose.yml and are only kept until 2026-12-31. They never change the CrateDB image of existing volumes: if the data was written by another CrateDB version than the compose file pins, Start-OctoInfrastructure and Install-OctoInfrastructure refuse to start, because CrateDB cannot be downgraded. Docker compose and kind use the same host ports and cannot run at the same time.

Setup the containers​

Docker compose is used to start the infrastructure dependencies. The infrastructure dependencies are defined in the docker-compose file. The script directly configures the services as needed.

Install-OctoInfrastructure

Start the containers​

Start the infrastructure dependencies, the containers will be started.

Start-OctoInfrastructure

Stop the containers​

Use this command to stop the infrastructure dependencies, the containers will be stopped but not removed.

Stop-OctoInfrastructure

Uninstall the containers​

Use this command to uninstall the infrastructure dependencies from docker including the volumes.

Uninstall-OctoInfrastructure

Get status of container​

Get-OctoInfrastructureStatus

Migrating from docker compose​

  1. Local data is disposable (the usual case). Optionally keep a safety copy of the volumes, then remove the compose stack and start kind:

    Stop-OctoInfrastructure
    Backup-OctoInfrastructure -Name before-kind # optional
    Uninstall-OctoInfrastructure # deletes containers AND volumes
    Install-OctoKubernetes

    Then create your tenants again.

  2. You want to keep tenant data. While compose still runs, dump every tenant (octo-cli -c Dump -tid <tenantId> -f <tenantId>.tar.gz -w), stop the compose stack, run Install-OctoKubernetes, start the services and restore each dump (octo-cli -c Restore -tid <tenantId> -db <database> -f <tenantId>.tar.gz -w). The compose volumes stay on disk until you run Uninstall-OctoInfrastructure.