Use Multipass for free local testing of worker nodes
Multipass is the perfect tool for testing CNAP worker configurations locally without any cloud costs. Built by Canonical specifically for testing scenarios, Multipass lets you quickly spin up Ubuntu VMs on your local machine to test worker setups before buying production machines.
Multipass is purpose-built for development and testing scenarios, making it ideal for:
Performance considerations: Local testing with Multipass will be slower than production servers due to your home internet connection (typically much slower than datacenter 1-10+ Gbps links) and limited local resources. Ensure your VM has at least 1 CPU and 3GB RAM for reliable testing.
CNAP’s managed KaaS architecture is designed so your workers don’t need a public IP address. When a worker starts, it automatically creates an outbound konnectivity tunnel to the control plane, allowing the control plane to reach the kubelet securely.
Install Multipass on your development machine:
macOS Installation
Using Homebrew (Recommended)
Manual Download
Download from https://multipass.run Install the .pkg file
Verify installation
Linux Installation
Using Snap (Recommended)
Manual Download
Download from https://multipass.run Follow distribution-specific installation instructions
Verify installation
Windows Installation
Using Chocolatey (Recommended)
Manual Download
Download installer from https://multipass.run Run the .exe installer
Verify installation
Create Your CNAP Cluster
First, ensure you have an active cluster in your CNAP dashboard. You’ll need the worker setup command from this cluster.
Launch Multipass VM
Create a new Ubuntu VM with adequate resources for testing:
Use --cpus 4 --memory 8G
for more realistic production testing scenarios.
Connect to Your Test VM
You’re now inside the Ubuntu VM, ready to test the worker setup.
Get Worker Setup Command
In your CNAP dashboard:
Test Worker Setup
Inside the Multipass VM, run the worker setup command:
The setup will automatically:
Verify Connection
Check your CNAP dashboard - the worker should appear as “Active” within 1-2 minutes.
With your Multipass worker connected, you can test complete product deployment workflows:
CNAP’s managed KaaS architecture provides several advantages for testing:
Important distinction: The cluster control plane ↔ worker communication works exactly like production servers, regardless of your local network configuration.
Product ingress considerations: If your product exposes services and expects a public IP, you’ll need to use your local VM’s IP address instead. Get it with multipass info cnap-worker
. This depends on each product’s deployment - some products use cloudflared tunnels which work seamlessly, while others may require manual IP configuration for local testing.
When you’re done testing, remove the worker from your cluster:
Test multi-worker scenarios by creating multiple VMs:
Test with minimal resources to simulate constrained environments:
Test network scenarios by configuring Multipass networking:
VM won't start
multipass version
--cpus 1 --memory 2G
Worker setup fails
curl -I https://dash.cnap.tech/worker.sh
sudo
explicitlyWorker doesn't appear in dashboard
Once you’ve validated your worker configuration with Multipass:
Use the same commands on production servers
Add more workers as your customer base grows
Create products to deploy on your tested infrastructure
Start selling your products to customers