Synopsis
talosctl is the CLI for out-of-band management of Kubernetes nodes created by Talos Linux.
Description
Thetalosctl command provides a comprehensive interface for managing Talos Linux clusters. It enables you to:
- Manage cluster lifecycle (create, destroy, scale)
- Perform node operations (reboot, upgrade, reset)
- Configure machines and generate configurations
- Troubleshoot and monitor cluster health
- Interact with Kubernetes and etcd
Global Flags
Connection Flags
The path to the Talos configuration fileDefault:
$TALOSCONFIG environment variable, or ~/.talos/config, or /var/run/secrets/talos.dev/configExample:Target the specified nodes for the operationCan be specified multiple times or as comma-separated values. Short flag:
-nExample:Override default endpoints in Talos configurationCan be specified multiple times or as comma-separated values. Short flag:
-eExample:Context to be used in commandSpecifies which context from the talosconfig file to use.Example:
Cluster to connect to if a proxy endpoint is usedShort flag:
-cExample:SideroV1 Authentication
Path to the SideroV1 auth PGP keys directoryDefault:
$SIDEROV1_KEYS_DIR or ~/.talos/siderov1-keysOnly valid for contexts that use SideroV1 authentication.Command Groups
Talos Cluster Management
Commands for managing running Talos clusters:apply-config- Apply a new configuration to a nodebootstrap- Bootstrap the etcd clusterconfig- Manage the client configuration file (talosconfig)dashboard- Cluster dashboard with real-time metricsdisks- Get the list of disks from the machinedmesg- Retrieve kernel logsedit- Edit a resource from the default editoretcd- Manage etcdevents- Stream runtime eventsget- Get a specific resource or list of resourceshealth- Check cluster healthinspect- Inspect internals of Taloskubeconfig- Download the admin kubeconfig from the nodelist- List directory contentslogs- Retrieve logs for a servicememory- Show memory usagepatch- Update field(s) of a resource using a JSON patchprocesses- List running processesread- Read a file on the machinereboot- Reboot a nodereset- Reset a noderestart- Restart a processrollback- Rollback a node to the previous installationservice- Manage servicesshutdown- Shutdown a nodestats- Get container statssupport- Generate support bundleupgrade- Upgrade Talos on the target nodeupgrade-k8s- Upgrade Kubernetes control planeversion- Print version information
Local Cluster Commands
Commands for managing local development clusters:cluster create- Create a local Talos clustercluster destroy- Destroy a local clustercluster show- Show cluster details
Offline Configuration Management
Commands for generating and managing machine configurations offline:gen config- Generate a set of configuration filesgen secrets- Generate secrets bundlegen crt- Generate X.509 certificatesgen key- Generate Ed25519 private keygen keypair- Generate X.509 key pairmachineconfig gen- Generate machine configurationmachineconfig patch- Patch machine configurationvalidate- Validate config
Examples
Display Version Information
Using Global Flags
Configuration File Management
Multiple Nodes Operations
Environment Variables
Default path to the talosconfig fileExample:
Default path to SideroV1 keys directoryExample:
Exit Codes
0- Success1- General error- Non-zero - Command-specific error
See Also
- CLI Overview - Installation and configuration
- Cluster Commands - Cluster management operations
- Node Commands - Node operation commands
- Config Commands - Configuration management