Skip to content

Commit 151fd1a

Browse files
authored
📖 Docs: Why FL in OCM (open-cluster-management-io#83)
* docs: explain why FL in OCM Signed-off-by: mrrr61 <mrrr61@outlook.com> * docs: refine documentation for FL integration with OCM Signed-off-by: mrrr61 <mrrr61@outlook.com> * docs: reference why-fl-in-ocm.md in README.md Signed-off-by: mrrr61 <mrrr61@outlook.com> * update README with detailed controller description Signed-off-by: mrrr61 <mrrr61@outlook.com> * update title Signed-off-by: mrrr61 <mrrr61@outlook.com> * add summary section explaining OCM-FL relationship Signed-off-by: mrrr61 <mrrr61@outlook.com> * update README Signed-off-by: mrrr61 <mrrr61@outlook.com> * update README Signed-off-by: mrrr61 <mrrr61@outlook.com> --------- Signed-off-by: mrrr61 <mrrr61@outlook.com>
1 parent 1cdc7eb commit 151fd1a

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

federated-learning-controller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ As machine learning (ML) evolves, protecting data privacy becomes increasingly i
44

55
Federated Learning (FL) addresses this by allowing multiple clusters or organizations to collaboratively train models without sharing sensitive data. Computation happens where the data lives, ensuring privacy, regulatory compliance, and efficiency.
66

7-
This Kubernetes controller automates the deployment and management of federated learning in an Open Cluster Management environment. The `FederatedLearning` Custom Resource Definition (CRD) provides a unified open interface for integrating frameworks such as Flower, OpenFL, and NVIDIA FLARE. It leverages Kubernetes-native resources to provision servers, launch clients, and orchestrate the training lifecycle across a multicluster environment.
7+
This Kubernetes controller automates the deployment and management of federated learning within an Open Cluster Management (OCM) environment, which provides an effective foundation for federated learning [Learn more](./docs/why-fl-in-ocm.md). The FederatedLearning CRD offers a unified, open interface for frameworks such as Flower, OpenFL, and Others, leveraging Kubernetes-native resources to coordinate servers, clients, and training across multicluster environments.
88

99
![Controller Architecture](./assets/images/architecture.png)
1010

670 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Why Open Cluster Management for Federated Learning
2+
3+
## Summary
4+
5+
Both Open Cluster Management (OCM) and Federated Learning (FL) use a hub-spoke architecture with a pull-based model. In OCM, managed clusters pull desired state and push status to the hub; in FL, collaborators pull the global model and push updates to the aggregator. The OCM Hub functions like the FL server, while managed clusters act as collaborators.
6+
7+
## Architectures
8+
9+
![Hub-and-spoke alignment between OCM and FL](../assets/images/OCM_FL_arch.png)
10+
11+
- **In Open Cluster Management (OCM)**, each managed cluster (spoke) runs an agent (called the *klusterlet*) that **pulls declared “prescriptions”** — such as policies, workloads, and configurations — from the central hub cluster, rather than the hub pushing them out. After applying or reconciling those prescriptions locally, the agent **reports back status, health, and results** to the hub, allowing the hub to maintain an up-to-date view and enabling eventual consistency across a large number of clusters.
12+
13+
- **In Federated Learning (FL)**, each collaborator (or client) periodically **pulls the latest global model** from a central aggregator. Using its own local dataset, the collaborator then **trains the model independently**, without sharing any raw data, preserving privacy and data sovereignty. Once local training is complete, the collaborator **pushes model updates** back to the aggregator. The aggregator then **aggregates these updates** from all collaborators to produce an improved global model, which is redistributed for the next training round. This iterative pull-and-push loop enables collaborative model improvement while keeping data decentralized.
14+
15+
- In this analogy, the **OCM Hub** acts like the **aggregator** in Federated Learning, defining the global state that clusters pull and report back on. Each **Managed Cluster** works like a **collaborator**, applying the desired state locally and pushing results to the hub—similar to how FL clients train locally and send updates to the server.
16+
17+
Using **OCM** brings extra value to the FL setting: client selection and coordination can leverage OCM’s built-in mechanisms such as **Placement** and **ManifestWork**. This allows the hub to efficiently choose which clusters participate and to distribute workloads or configurations automatically, making federated deployment and management more **scalable and consistent**.

0 commit comments

Comments
 (0)