omnictl CLI gives you direct access to these resources, allowing you to inspect and manage them without using the UI.
This document explains how Omni resources are structured and how to manage them using omnictl.
Resource relationships
Omni resources do not exist in isolation. They are interconnected and continuously reconciled by controllers. For example:- A
linkresource is associated with a correspondingmachineresource. machineresources can become part of a cluster throughMachineSetandMachineSetNoderesources.- Controllers automatically create and maintain status and system resources.
talos-default, run:
metadata
The metadata section describes the identity and lifecycle state of the resource. It includes:
namespace,type, andid, which uniquely identify the objectversion, which tracks revisions of the resourceowner, which contains the name of the controller that manages this resource (for example,ClusterStatusController). If this field is set, the resource is controller-managed and cannot be modified directly withomnictl.phase, which reflects the current lifecycle statecreatedandupdatedtimestampsfinalizers, which list controllers that must complete cleanup work before the resource can be fully deleted
spec
The spec section defines the desired state of the cluster. For a cluster, this includes:
- Installed image and version settings
- Kubernetes and Talos versions
- Feature flags
- Backup configuration
omnictl to query and manage resources confidently.
Manage resources with the CLI
The CLI allows you to query existing resources, apply updates, and remove objects from your Omni instance. Keep in mind that some resources are managed entirely by controllers. These resources are read-only, changing them manually is not possible. To discover which resource types are available in your environment, run:Manage a cluster
You can create or update an Omni cluster using a cluster templates:Cluster and machine resources
Clusters and machines define the structure and runtime state of your infrastructure. List all clusters:This command outputs the live cluster resource definition in YAML format. It represents the current state of the cluster in Omni. This is different from a cluster template, which defines the desired configuration used to create or manage clusters.
Access and identity resources
Access control and identity are also resource-driven.Manage users
Users represent human identities that can authenticate with Omni and are assigned roles that define their permissions. You can manage users directly withomnictl:
List users:
Manage service accounts
Service accounts are intended for automation and system-to-system interactions. You can manage service accounts with the following commands: List service accounts:Manage join tokens
Join tokens allow machines or infrastructure providers to securely register with Omni. You can create and manage join tokens usingomnictl:
List join tokens
Infrastructure and Integration Resources
Infrastructure providers are represented as resources. List infrastructure providers:Filter and watch resources for changes
In addition to listing resources, you can filter results and watch for changes in real time. Filter by label:Delete resources
You can remove resources using thedelete command.
Delete a specific resource: