Local Single Node OpenShift (SNO) clusters for development and testing. Wraps the agent-based installer and libvirt/KVM into simple scripts with a clean lifecycle.
Supports multiple clusters on the same host (shared networking) and cross-host cluster connectivity via bridge networking.
- Linux host with libvirt/KVM (
virsh,virt-install,qemu-kvm)- Fedora:
sudo dnf install @virtualization virt-install
- Fedora:
sudoaccess (for virsh, systemd-resolved, iptables, /var/lib/shiftlet)- A valid OpenShift pull secret
occlient (auto-installed if missing)ghCLI (only for version resolution) — install- For bridge mode only: Linux bridge device (br0) — see Bridge Setup below
- Edit an env file and set your pull secret path:
vim dev.env- Create a cluster:
./create.sh dev.envThis takes ~40 minutes. In NAT mode (default), the cluster is only accessible from the host machine. In bridge mode, it is accessible from any device on the LAN.
- Access the cluster:
export KUBECONFIG=/var/lib/shiftlet/dev/kubeconfig
oc get nodesThe kubeadmin password is saved at /var/lib/shiftlet/<name>/kubeadmin-password and printed at the end of the install.
| Script | Usage | Description |
|---|---|---|
create.sh |
./create.sh <cluster.env> |
Create a cluster from an env file |
delete.sh |
./delete.sh <name|cluster.env> |
Delete a cluster and all its resources |
list.sh |
./list.sh |
List all clusters with VM IP, console URL, kubeconfig, and login |
get_latest.sh |
./get_latest.sh [X.Y|latest] |
Print the latest stable OCP version |
get_capabilities.sh |
./get_capabilities.sh |
Print known OCP capabilities for env files |
Example list.sh output:
------------------------------------------------------------
Name: hub
VM IP: 192.168.1.80
Console: https://console-openshift-console.apps.hub.shiftlet.local
Kubeconfig: export KUBECONFIG=/var/lib/shiftlet/hub/kubeconfig
Login: kubeadmin / sHAja-Ptx93-8HIfR-v2DtH
------------------------------------------------------------
NAME=dev
VERSION=4.21.5
MEMORY_GB=16
PULL_SECRET=~/.config/openshift/pull-secret
CAPABILITIES="Ingress Console"
FEATURE_SET=TechPreviewNoUpgrade # optionalVERSION accepts latest, X.Y, X.Y.Z, or X.Y.Z-rc.N (for example,
5.0.0-rc.7). latest and X.Y resolve from stable release channels;
explicit full versions are used directly.
See hub.env.example for all available options with descriptions.
Capabilities: Run ./get_capabilities.sh for a quick list. Capabilities can be enabled post-install but not disabled.
FeatureSet: Enables pre-GA features at install time. Valid values: TechPreviewNoUpgrade (beta-maturity), DevPreviewNoUpgrade (alpha-maturity), CustomNoUpgrade (individual gates, unsupported). Omit for a standard cluster. Once set, it is permanent and blocks minor version upgrades.
Env files are gitignored — create your own based on hub.env.example. Typical profiles:
- dev —
CAPABILITIES="Ingress Console", 16 GB RAM — minimal cluster for local testing - spoke — adds
OperatorLifecycleManager, 16 GB RAM - hub — adds
marketplace MachineAPI Build ImageRegistry, 25 GB RAM — enough resources to run MCE/ACM if installed separately
Minimum 16 GB RAM per cluster — the installer enforces this for master/control-plane nodes.
Shiftlet supports three network configurations:
Creates isolated virtual networks per cluster. Works on WiFi or wired ethernet.
- VM gets private IP on isolated subnet (192.168.133.x, 192.168.134.x, etc.)
- Host can reach VM, LAN cannot
- Wildcard DNS is configured automatically on the host via systemd-resolved
Use NAT for:
- Single cluster development
- WiFi-based setups
- Isolated testing
Multiple clusters share the same libvirt NAT network. The recommended way to run hub + spoke (or any multi-cluster setup) on a single host. Works on WiFi or wired ethernet.
- Second cluster joins the first cluster's NAT network (same bridge, same subnet)
- All VMs can communicate directly at L2 — no firewall rules needed
- Host can reach all VMs, all VMs can reach the internet via NAT
- DHCP reservations and DNS entries are added to the existing network automatically
- IPs are assigned sequentially (.80, .81, .82, ...)
Use shared network for:
- Hub + spoke on the same host
- Any multi-cluster setup on a single host
- WiFi-based setups where clusters need to talk to each other
Env file settings:
SHARED_NETWORK=hub # name of the cluster whose network to joinThe referenced cluster must be running before creating the new one. On delete, only the DHCP/DNS entries are removed — the shared network stays intact.
Connects VMs directly to your LAN via a Linux bridge. Requires wired ethernet and bridge setup.
- VM gets explicit LAN IP (set via
BRIDGE_VM_IPin env file) - VM reachable from any device on the LAN, including the host
- Cross-host multi-cluster works without port forwarding
- Wildcard DNS is configured automatically on the install host; on other hosts, add the printed
/etc/hostsline
Use bridge for:
- Multi-cluster across physical hosts
- Hub-spoke testing with hub on host A, spoke on host B
Prerequisites (one-time per host):
- Wired ethernet connection
- Linux bridge device (br0) — see Bridge Setup below
nmstatepackage:sudo dnf install nmstate- /24 LAN subnet (e.g., 192.168.1.0/24)
- Chosen VM IPs outside your router's DHCP pool
Env file settings:
NETWORK_MODE=bridge
BRIDGE_VM_IP=192.168.1.80 # unique per cluster across all hosts on LANThen:
./create.sh hub.envAfter install, shiftlet prints the /etc/hosts line and scp command needed on the other host.
Bridge mode makes the following assumptions. These are documented here, not validated by shiftlet.
- Gateway is
<first 3 octets of BRIDGE_VM_IP>.1— e.g. for192.168.1.80the gateway is192.168.1.1. If your router uses a different IP, the VM will have no internet access. - DNS server is the gateway — same IP as the gateway. If your network uses a separate DNS server, you will need to modify the NMState config in
common.sh. - Subnet is /24 — prefix length 24 is hardcoded. Networks with /16, /25, or other sizes will not work correctly.
- VM network interface is
enp1s0— the NMState config targets this interface name. This is the default for KVM VMs with virtio; different virt-install configurations may use a different name. - Bridge device is named
br0— hardcoded; alternative bridge names are not supported.
Bridge mode requires a Linux bridge device (br0) and the nmstate package. This is a one-time setup per host.
sudo dnf install nmstateMost modern Linux systems use NetworkManager. Create the bridge using nmcli:
# 1. Identify your wired interface name
ip link show
# Example output shows: eth0, enp0s31f6, etc.
# Use your actual interface name in the commands below (replace eth0)
# 2. Create bridge device
sudo nmcli connection add type bridge ifname br0 con-name br0
# 3. Add your wired interface to the bridge
# This will briefly interrupt network connectivity (~5-10 seconds)
sudo nmcli connection add type ethernet slave-type bridge \
master br0 ifname eth0 con-name bridge-slave-eth0
# 4. Bring up the bridge
sudo nmcli connection up br0
# 5. Verify bridge is active
ip link show br0
nmcli connection showWhat this does:
- Creates a bridge device named
br0 - Enslaves your physical ethernet interface (eth0) to the bridge
- Transfers IP configuration from eth0 to br0
- Your host's LAN connectivity now goes through the bridge
- VMs attached to br0 will appear as separate devices on your LAN
Important notes:
- Run this on a wired connection only (WiFi cannot be bridged)
- Brief network interruption during setup (5-10 seconds)
- If connected via SSH, your session may drop
- Configuration persists across reboots
- Bridge must be created before running shiftlet in bridge mode
After creating the bridge, verify it's working:
# Check bridge exists and is UP
ip link show br0
# Check your host still has network connectivity
ping -c 3 8.8.8.8
# Verify bridge connection is active
nmcli connection show --active | grep br0If you need to remove the bridge and restore direct ethernet:
# Delete bridge connections
sudo nmcli connection delete br0
sudo nmcli connection delete bridge-slave-eth0
# Bring up original ethernet connection
sudo nmcli connection up "Wired connection 1"No special setup required. Works on WiFi.
# hub.env: standard NAT mode
./create.sh hub.env
# spoke.env: includes SHARED_NETWORK=hub
./create.sh spoke.envBoth VMs end up on the same bridge (e.g. virbr-shl0, subnet 192.168.133.0/24). Hub gets .80, spoke gets .81. They can communicate directly.
Shiftlet automatically sets up wildcard DNS so that pods on one cluster can resolve any hostname on another cluster (e.g. cluster-proxy-anp.apps.hub.shiftlet.local from a spoke). This is critical for services like MCE cluster-proxy that create konnectivity tunnels between clusters.
How it works:
- A systemd service (
shiftlet-dns) runs a lightweight dnsmasq on127.0.0.2:53 - It serves wildcard
address=records from/var/lib/shiftlet/dns/*.conf(one per cluster) - Each libvirt network forwards
*.shiftlet.localqueries to it via aserver=dnsmasq option create.shwrites the DNS entry and ensures the service;delete.shcleans up
No manual steps needed — DNS is provisioned automatically during cluster creation. The host machine also gets wildcard resolution via a systemd-resolved forwarding rule (~shiftlet.local → 127.0.0.2), so no /etc/hosts entries are needed.
SELinux note: the DNS config directory (/var/lib/shiftlet/dns/) is labelled dnsmasq_etc_t via semanage fcontext so dnsmasq can read it under SELinux enforcement.
Bridge mode limitation: bridge mode does not create a libvirt network, so cross-cluster DNS forwarding to VMs is not available. The host still gets wildcard resolution via systemd-resolved.
Requires bridge mode on both hosts and wired ethernet.
On each host (one-time):
- Set up the Linux bridge (see Bridge Setup)
- Install nmstate:
sudo dnf install nmstate - Reserve VM IPs in your router (outside DHCP pool)
Install clusters:
# Host A (hub.env has NETWORK_MODE=bridge, BRIDGE_VM_IP=192.168.1.80):
./create.sh hub.env
# Host B (spoke.env has NETWORK_MODE=bridge, BRIDGE_VM_IP=192.168.1.81):
./create.sh spoke.envAfter each install, shiftlet prints:
- The
/etc/hostsline to add on the other host (that host lacks the shiftlet-dns service) - The
scpcommand to copy the kubeconfig to the other host
What's automatic (on the install host):
- Wildcard DNS for all
*.shiftlet.localdomains via shiftlet-dns + systemd-resolved
What's manual (on the other host):
- Add the printed
/etc/hostsline - Copy kubeconfig with the printed scp command