Skip to content
© 2026 The ThingsBoard Authors
Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Cluster setup using Minikube

This guide walks you through setting up ThingsBoard in cluster mode using Kubernetes and Minikube with microservices architecture. Licensing is free and requires no credit card. Docker container images are available on Docker Hub.

For a simpler single-node installation, see Docker (Linux, macOS). For production cluster deployments, see Docker Compose (Cluster).

ThingsBoard microservices run on a Kubernetes cluster. You need:

  • Minikube installed
  • kubectl command-line tool configured to communicate with your cluster
  • Outbound internet access to pull Docker images and to reach the ThingsBoard License Portal during activation

By default the ingress addon is disabled in Minikube. Enable it:

Terminal window
minikube addons enable ingress

Verify that you can pull the images from Docker Hub:

Terminal window
docker pull thingsboard/tb-node:4.4.0
docker pull thingsboard/tb-web-report:4.4.0
docker pull thingsboard/tb-web-ui:4.4.0
docker pull thingsboard/tb-js-executor:4.4.0
docker pull thingsboard/tb-http-transport:4.4.0
docker pull thingsboard/tb-mqtt-transport:4.4.0
docker pull thingsboard/tb-coap-transport:4.4.0
docker pull thingsboard/tb-lwm2m-transport:4.4.0
docker pull thingsboard/tb-snmp-transport:4.4.0

Step 1. Clone ThingsBoard Kubernetes Scripts

Section titled “Step 1. Clone ThingsBoard Kubernetes Scripts”
Terminal window
git clone -b release-4.4.0 https://github.com/thingsboard/thingsboard-pe-k8s.git --depth 1
cd thingsboard-pe-k8s/minikube

Edit the .env file to set the database type:

Terminal window
nano .env

Set the DATABASE variable to one of:

Value Description
postgres Use PostgreSQL for all data
hybrid Use PostgreSQL for entities and Cassandra for time-series data

Step 3. Configure Trendz Analytics (Optional)

Section titled “Step 3. Configure Trendz Analytics (Optional)”

You may optionally install Trendz Analytics.

Terminal window
docker pull thingsboard/trendz:1.16.0
docker pull thingsboard/trendz-python-executor:1.16.0

Edit trendz/trendz-secret.yml and replace YOUR_RDS_ENDPOINT_URL and YOUR_RDS_PASSWORD, then apply:

Terminal window
kubectl apply -f ./trendz/trendz-secret.yml
kubectl apply -f ./trendz/trendz-create-db.yml

Check the logs:

Terminal window
kubectl logs job/trendz-create-db -n thingsboard
Terminal window
./k8s-deploy-trendz.sh

You should see Trendz installed successfully! in the console output.

  1. Run the installation script:

    Terminal window
    ./k8s-install-tb.sh
  2. Deploy third-party resources:

    Terminal window
    ./k8s-deploy-thirdparty.sh

    Type yes when prompted if you are running ThingsBoard in high-availability deployment type for the first time or don’t have a configured Redis cluster.

  3. Deploy ThingsBoard resources:

    Terminal window
    ./k8s-deploy-resources.sh

After all resources start, get the cluster IP:

Terminal window
minikube ip

Open http://{your-cluster-ip} in your browser. On first launch you are greeted with the activation screen:

Welcome to ThingsBoard 4.4.0
Get your free license and start building

Continue with the next step to license and activate your instance.

Step 5. License and Activate Your Instance

Section titled “Step 5. License and Activate Your Instance”

Opening ThingsBoard in your browser for the first time shows an activation welcome screen.

  1. Click Open the License Portal, then create an account or sign in.
  2. Choose a free license: Commercial (up to 100 devices, one server) or Non-commercial (up to 1,000 devices, any number of servers).
  3. Check the confirmation box to agree to the Terms of Use, Privacy Policy, and ThingsBoard License (BUSL 1.1), then click Accept and activate to issue the license and activate your instance.
  4. Click Continue setup on your instance to proceed to account creation. Your license key stays available on this screen and in your License Portal account.

Once activated, ThingsBoard prompts you to create your System Administrator account — the account that manages the platform itself (tenants, system settings, platform-wide resources).

  1. Enter Email, Password, and Confirm password.
  2. The Set up a demo tenant option is selected by default: it creates a ready-made tenant with dashboards, devices, and rule chains for exploring the platform before building your own solution. Clear it if you want to start with an empty platform.
  3. Click Create account. You are signed in as the system administrator.

Your ThingsBoard instance is now installed and running.

List running ThingsBoard node pods:

Terminal window
kubectl get pods -l app=tb-node

Stream logs of a specific pod:

Terminal window
kubectl logs -f TB_NODE_POD_NAME

Replace TB_NODE_POD_NAME with the pod name from the list above.

Other useful commands:

Command Description
kubectl get pods List all pods
kubectl get services List all services
kubectl get deployments List all deployments

See the kubectl Cheat Sheet for more commands.

For log-inspection commands, see Inspect Logs and Manage Resources above.

For more troubleshooting tips, see the Troubleshooting guide.

Delete ThingsBoard microservices:

Terminal window
./k8s-delete-resources.sh

Delete third-party services:

Terminal window
./k8s-delete-thirdparty.sh

Delete all resources including database:

Terminal window
./k8s-delete-all.sh

With ThingsBoard running, these concept guides help you build your first solution: