Install and Configure Omnictl
A guide on installing and configuring omnictl for Omni.
1. Installation
Pick one of the installation methods below.
a. Recommended installation
To install omnictl
and the kubectl oidc-login
plugin automatically on macOS and Linux you can use the provided Hombrew formula.
brew install siderolabs/tap/sidero-tools
This will install talosctl
, omnictl
, and kube-oidc_login
and keep them updated.
b. Manual installation
Download omnictl
from the Omni dashboard.
2. Configuration File
Download omniconfig
from the Omni dashboard.
Omnictl follows the XDG Base Directory Specification for its configuration files location.
Omni configuration is stored under $XDG_CONFIG_HOME/omni/config
. This means, the correct configuration file locations for omniconfig
are the following:
Linux
~/.config/omni/config
MacOS
~/Library/Application Support/omni/config
Windows
%LOCALAPPDATA%\omni\config
, e.g., C:\Users\<USER>\AppData\Local\omni\config
Add the downloaded omniconfig.yaml
to the default location for your OS to use it with omnictl
:
cp omniconfig.yaml <LOCATION_FOR_YOUR_OS_ABOVE>
If you would like to merge the omniconfig.yaml
with an existing configuration, use the following command:
omnictl config merge ./omniconfig.yaml
List the contexts to verify that the omniconfig
was added:
$ omnictl config contexts
CURRENT NAME URL
...
example https://example.omni.siderolabs.io/
...
Run omnictl
for the first time to perform initial authentication using a web browser:
omnictl get clusters
If the browser window does not open automatically, it can be opened manually by copying and pasting the URL into a web browser:
BROWSER=echo omnictl get clusters
Last updated