Control Plane
Self-hosting a DevZero Control Plane on Rancher.
This document helps you install DevZero self-hosted Control Plane on a single-node Rancher Kubernetes cluster.
For a detailed overview of the DevZero Control Plane, click here
What is Rancher?
Rancher is like a control panel for Kubernetes clusters. It gives you an easy-to-use interface where you can manage multiple clusters, monitor workloads, and handle storage or permissions—all from one place. In this setup, we’ll run Rancher on a single server using Docker.
Why use Rancher?
The main reasons to use Rancher are:
- It simplifies Kubernetes management.
- You get a dashboard to see everything happening in your cluster.
- It’s great for small setups or testing environments.
Prerequisites
The following tools and resources are needed to setup a DevZero Control Plane hosted on Rancher:
Steps to set up Control Plane on Rancher
Run Rancher on Docker
Run Rancher in a container with this command:
Get the Container ID of the docker container running the Rancher:
Get your password to log in to the rancher platform from this command:
Connect with Rancher Cluster
Log in to the Rancher portal at http://localhost:9080
, and download the kubeconfig of the rancher's local cluster:
Update your local kubeconfig with the download kubeconfig of the rancher cluster:
Set up Local Storage
Apply this manifest to create the required resources to use local storage in persistentvolumeclaim
:
Set the created storageclass as default:
Install DevZero Control Plane
Install the CRDs for the Control Plane:
Install the Control Plane:
Contact the DevZero team at support@devzero.io to get your credentials and license key.
Unseal the Vault
Once the installation is complete, get the keys to unseal the Vault:
Copy three unseal keys out of the five in the output and unseal the vault with these commands:
Fix Prometheus DaemonSet Configuration
To resolve the root filesystem mount issue with the Prometheus container running in a Rancher cluster, edit the Prometheus DaemonSet:
Remove the hostPath with path: /root
and mountPath: /host/root
Setting up Data Plane on a Rancher Cluster
To set up the data plane in the same cluster, follow the guide for Setting up the Data Plane on Rancher from here.