siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.46k stars 516 forks source link

[Feature Request] talosctl apply --wait #9066

Open ChickenIQ opened 1 month ago

ChickenIQ commented 1 month ago

Feature Request

Description

An option for talosctl to wait after applying the config if the node is going to reboot.

This is useful mainly for automation, introducing a simple and clean way to make sure that a config is applied before continuing. Using the no-reboot mode is usually not an option as it will just error out and not apply the changes.

Minivolk02 commented 1 month ago

Hi @ChickenIQ ! I think you can use talosctl health: `Usage: talosctl health [flags]

Flags: --control-plane-nodes strings specify IPs of control plane nodes -h, --help help for health --init-node string specify IPs of init node --k8s-endpoint string use endpoint instead of kubeconfig default --run-e2e run Kubernetes e2e test --server run server-side check (default true) --wait-timeout duration timeout to wait for the cluster to be ready (default 20m0s) --worker-nodes strings specify IPs of worker nodes

Global Flags: --cluster string Cluster to connect to if a proxy endpoint is used. --context string Context to be used in command -e, --endpoints strings override default endpoints in Talos configuration -n, --nodes strings target the specified nodes --talosconfig string The path to the Talos configuration file. Defaults to 'TALOSCONFIG' env variable if set, otherwise '$HOME/.talos/config' and '/var/run/secrets/talos.dev/config' in order.` for example wait-timeout