arlon icon indicating copy to clipboard operation
arlon copied to clipboard

Apply Profiles and their contained Bundles to multiple clusters simultaneously

Open cre8minus1 opened this issue 2 years ago • 4 comments

As I have many existing clusters it would be great to be able to bulk apply Profiles to multiple clusters in a single command/action.

Aha! Link: https://pf9.aha.io/features/ARLON-160

cre8minus1 avatar Jun 01 '22 22:06 cre8minus1

One basic way to do this would be to have a comma separated list of clusters.

However, we can also define a dynamic cluster set or cloudlet from the orchestrator proposal - and have a way to define one using some kind of query/ expression logic. e.g. some match expression in YAML or a SQL/ kubeql query like SELECT * FROM CLUSTERS WHERE LABEL IN ('dev', 'staging')

cruizen avatar Jan 11 '23 11:01 cruizen

Hey team! Please add your planning poker estimate with Zenhub @bcle @jayanth-tjvrr @Rohitrajak1807 @ShaunakJoshi1407

cruizen avatar Jan 11 '23 11:01 cruizen

We'll need more details, before sizing this issue. If the requirement is simply a comma separated list, then it could be simpler.

Rohitrajak1807 avatar Jan 11 '23 12:01 Rohitrajak1807

Assuming we are talking about AppProfiles (and not the older gen1 profile), then applying one or more profiles to a cluster is done by annotating the cluster. The recommended way is to use kubectl annotate, see https://github.com/arlonproj/arlon/blob/main/docs/appprofiles.md#targeting-appprofiles-to-workload-clusters Arlon does not currently offer a CLI command to do it, as it would be redundant. We could add a command, and support annotating multiple clusters in one shot. Frankly, I think the value add of this command is low, as it'll be used rarely. Annotating a Kubernetes object via k8s API is a little messy, it's not hard but you'd have to look at how kubectl does it. Adding an estimate based on the fact that we'd have to add a new command from scratch.

bcle avatar Jan 11 '23 17:01 bcle