Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Configurable node and endpoint grouping #10138

Open
rothgar opened this issue Jan 15, 2025 · 2 comments
Open

[feature] Configurable node and endpoint grouping #10138

rothgar opened this issue Jan 15, 2025 · 2 comments

Comments

@rothgar
Copy link
Member

rothgar commented Jan 15, 2025

Feature Request

Users need easier ways to query the talos API for a set of machines. Talosctl should support some default and configurable grouping for targets.

Description

It is often requested that talosctl support some special names for node targets such as all, controlplane and workers. We should try to support some of these by default and maybe match them based on node labels (eg nvidia.com/gpu=1 or topology.kubernetes.io/zone=us-east-1c).

Because node labels can be quite long and unintuitive to remember we should probably make it possible to configure target aliases so they can be meaningful to the administrator.

I'm not sure if that's something we can store in the talosconfig file but it could be nice to have an option to set up aliases such as

targets:
    edge1:
        - nodeA
        - nodeB
    dumpster-fire:
        labels:
            - topology.kubernetes.io/region=us-east

Then a user can target a group of machines in an easier to remember fashion.

If a talosctl API is not suitable for a group of machines (eg talosctl bootstrap) then a single node from the group can be selected (random or in order?) for the command to run.

@oliverl-21
Copy link

I would be happy with an -n all

@steverfrancis
Copy link
Collaborator

all, controlplane and workers makes sense, and should suffice for non-Omni users.
Aliases for node labels should be handled by Omni, not by the end user talosconfig (IMO)

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

No branches or pull requests

3 participants