arlon
arlon copied to clipboard
Apply Profiles and their contained Bundles to multiple clusters simultaneously
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
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')
Hey team! Please add your planning poker estimate with Zenhub @bcle @jayanth-tjvrr @Rohitrajak1807 @ShaunakJoshi1407
We'll need more details, before sizing this issue. If the requirement is simply a comma separated list, then it could be simpler.
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.