Self-Hosted Kubernetes on a Dedicated Server
Run self-hosted Kubernetes on a dedicated server, bare-metal machine, or VM. Wodby installs K3s, a lightweight open-source Kubernetes distribution, to prepare and connect your server. Wodby keeps K3s, Cilium networking, and the cluster infrastructure up to date, deploys and monitors your apps, and helps you use the server's compute efficiently. It checks the server's packages for vulnerabilities and installs operating system updates when you choose. Start with one server and add worker nodes over a private network when your apps need more capacity.
Comparing all infrastructure paths? See managed Kubernetes, self-hosted Kubernetes, and Wodby Cloud.
Setup flow
From server to Wodby-ready Kubernetes
- 1
Prepare a server
Use a dedicated server, bare-metal machine, or VM that meets the minimum requirements.
- 2
Create self-hosted Kubernetes in Wodby
Open Kubernetes > Connect server, choose the owner, and name the self-hosted environment.
- 3
Run the setup command
Run the one-time command on the target server as root or with sudo. Wodby prepares the server and connects it back to the platform.
- 4
Deploy apps with Wodby
After initialization, Wodby deploys the required infrastructure components and the cluster becomes available for app deployments.
Start with one server, add worker nodes when you need them
Every setup starts with one K3s server, which runs Kubernetes and receives public traffic. When your apps need more CPU, memory, or disk, add worker nodes on the same private network. K3s is a lightweight open-source Kubernetes distribution that fits this model well, while Wodby provides the platform workflow around it. For production systems that need high availability or autoscaling, keep managed Kubernetes in the plan.
Good fit for budget self-hosted Kubernetes
- Budget hosting for smaller apps where one server is enough
- Agencies hosting multiple smaller client apps on one server
- Development, QA, staging, and internal environments
- Growing apps that add worker nodes as they need more capacity
- Teams that prefer dedicated servers or VMs for cost control
Better fit for managed Kubernetes
- Mission-critical production workloads that need stronger resilience
- Applications that need autoscaling across many nodes
- Teams that want provider-managed control plane operations
- Clusters that must keep running when any one server fails
Wodby prepares the server for app deployments
After you create the self-hosted Kubernetes environment in Wodby, the dashboard shows a generated setup command for the target server. The setup prepares a clean server as a Wodby-ready Kubernetes environment and connects it to the platform.
New self-hosted Kubernetes environments start in the Awaiting state until that command runs successfully. When initialization finishes, you can select the cluster when you create an app environment.
Prepared environment
- A lightweight Kubernetes foundation based on K3s
- Platform components Wodby needs to run application stacks
- A connected cluster available from Wodby when creating app environments
- The same stacks, environments, and deployments as on any other cluster
- Cluster monitoring, unless you turn it off
- Automatic K3s and Cilium updates in a maintenance window you choose
- Daily vulnerability checks of server packages, with updates and restarts you start
- Worker nodes you add later with a one-time join command
The cluster starts on one server. You add worker nodes yourself when you need more capacity: Wodby does not add, remove, or scale servers for you, and the K3s server remains a single point of failure.
Keep the server patched without leaving Wodby
Once a day, Wodby checks each server's installed packages and running kernel against your distribution's security data. The findings appear on the cluster's Security tab, next to the vulnerabilities of Kubernetes and the infrastructure apps, and the ones known or likely to be exploited raise an alert.
Wodby never updates or restarts a server on its own. You start each update and restart, and pick the time.
Update and restart from the dashboard
- Install your distribution’s updates on every node or the ones you choose, one node at a time, while your apps keep running
- Stay on the operating system release the server runs, and keep the configuration files you changed
- See when an update needs a restart, such as a new kernel, from the Restart required tag
- Restart only the nodes that need it, after Wodby moves their apps to other nodes when they have room
On a cluster with one server, a restart makes every app on it unavailable for a few minutes. Restart it in a maintenance window.
Run on a dedicated server, bare metal, or a VM
Self-hosted Kubernetes with K3s works well when you already have a server provider and want to keep compute costs under control. A dedicated server is usually the cheapest of these options, because it typically gives you more CPU and memory per dollar than a comparable VM and removes the managed control plane from the bill. Hetzner is the common starting point, but the Wodby flow can work with other providers when the server meets the requirements.
Minimum requirements
- At least 2 GB RAM and 2 CPUs
- Dedicated, non-shared CPU
- At least 20 GB disk space
- Ubuntu/Debian, Fedora/CentOS, or OpenSUSE
- amd64 machine architecture
- Outbound internet access to reach Wodby and installation endpoints
- A private network between servers, such as a cloud VPC or a Hetzner vSwitch, to add worker nodes
Common server starting points
- Hetzner dedicated servers
- OVH dedicated servers
- DigitalOcean Droplets
- Azure Virtual Machines
- Google Cloud Compute Engine
- AWS EC2
- Oracle Cloud bare metal
- Alibaba bare metal
- UpCloud
- Scaleway
- Custom provider (any other hosting provider)
Start from a ready-made stack
A stack is everything an app runs on, such as the runtime, web server, database, and cache, set up to work together. Pick the one for your framework, or for an app you want to host yourself.
- Configurable
- Choose the components, their versions, and the settings each environment runs with.
- Kept up to date
- Wodby maintains the software in every stack. Security fixes and new versions arrive as updates you apply on your own schedule.
- Reusable
- Reuse a stack across applications and environments, from development to production.
Start with budget self-hosted Kubernetes
Connect your own server with K3s, deploy Wodby stacks through the same workflow you use elsewhere in Wodby, and add worker nodes when your apps outgrow one server.