Before you start with Syself Autopilot, you should install the necessary tools to interact with Kubernetes clusters. This section provides instruction on how to install kubectl
and kubelogin
. Make sure you have these tools installed before proceeding to the next sections.
Kubectl is a tool used to control and manage Kubernetes clusters from the command line. It helps you deploy and manage applications, view logs, and perform other tasks. You'll need it for creating your workload cluster.
You can install kubectl
using your distribution native package management, or directly downloading the release:
If you do not have root access on the target system, you can still install kubectl to the ~/.local/bin directory:
If you want to know more, refer to the official Kubernetes documentation.
We use kubelogin to access the management cluster. It is a plugin designed for Kubernetes OpenID Connect (OIDC) authentication.
For installing kubelogin
, we recommend using Krew
, the plugin manager for kubectl
. If you wish to install Krew
, you can:
Make sure that git is installed.
Run this command to download and install:
Add the $HOME/.krew/bin
directory to your PATH environment variable. To do this, update your .bashrc or .zshrc file and append the following line:
and restart your shell.
Run kubectl krew
to check the installation.
For more information, please refer to the official Krew documentation
If you already have Krew
installed, you can use it to install kubelogin
:
Alternatively, you can install it via a Github release. Then you need to make sure that it is on your path as kubectl-oidc_login
.