Multi-Cluster Federation with Karmada and vcluster
Expert · 60 minutes · 5 tasks, checked automatically · 100 points
In this expert-level lab you will build a fully functional multi-cluster federation on a single kind node. You will install the Karmada control plane using its official Helm chart, spin up a vcluster virtual cluster to act as a second member, join both the host kind cluster and the vcluster as Karmada member clusters, and finally deploy a workload whose replicas are split between the two members by weight using a PropagationPolicy. By the end you will be able to verify that pods are running in both member clusters exactly as the policy dictates.
What you’ll learn
- Install the Karmada control plane into the kind cluster using the official Helm chart and expose it via NodePort
- Create a vcluster virtual cluster and register it as a Karmada member alongside the host kind cluster
- Deploy a workload governed by a Karmada PropagationPolicy that distributes replicas across both members by weight and verify pod placement
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: karmada, federation, multi-cluster, vcluster, helm, propagation-policy, replica-scheduling, kind
Create a free account to start this lab.
Keep going
- Multi-Node Scheduling, Cordon, Drain, and Node Maintenance
- Cluster API with Docker Provider: Declarative Workload Cluster Lifecycle
- Run a DaemonSet Across All Nodes
- Zero-Downtime Rolling Updates with maxSurge / maxUnavailable
- Static Pods Managed Directly by the Kubelet
- IndexedJob and Parallel Job Completions in Kubernetes