Skip to content

feat: Let one sveltos-agent serve several clusters - #535

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:agent-grouping
Nov 7, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:agent-grouping

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

Add --agent-clusters-per-instance. When greater than one, classifier deploys in the management cluster a single sveltos-agent Deployment for up to N clusters, instead of one Deployment per cluster. The clusters sharing a Deployment (a group) are recorded in a ConfigMap with the same name as the Deployment, using libsveltos agentgroup.

The flag applies only to agentless mode. It is ignored when the agent runs in the managed cluster, in pull mode, and when N is 1. The group Deployment is removed when its last member leaves, and members whose cluster is gone are removed by a periodic sweep. Only global agent patches apply to a group.

The agentless sveltos-agent Role gains access to configmaps.

Add unit tests and a post-merge FV job, FV_AGENTLESS_GROUPING, running make create-cluster-agentless-grouping fv-agentless-grouping.

Add --agent-clusters-per-instance. When greater than one, classifier
deploys in the management cluster a single sveltos-agent Deployment
for up to N clusters, instead of one Deployment per cluster. The
clusters sharing a Deployment (a group) are recorded in a ConfigMap
with the same name as the Deployment, using libsveltos agentgroup.

The flag applies only to agentless mode. It is ignored when the agent
runs in the managed cluster, in pull mode, and when N is 1. The group
Deployment is removed when its last member leaves, and members whose
cluster is gone are removed by a periodic sweep. Only global agent
patches apply to a group.

The agentless sveltos-agent Role gains access to configmaps.

Add unit tests and a post-merge FV job, FV_AGENTLESS_GROUPING, running
make create-cluster-agentless-grouping fv-agentless-grouping.
@gianlucam76
gianlucam76 merged commit 958978f into projectsveltos:main Nov 7, 2026
10 checks passed
@gianlucam76
gianlucam76 deleted the agent-grouping branch November 7, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant