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.

Install kubectl

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 want to know more, refer to the official Kubernetes documentation .

    Install and configure kubelogin

    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:

    1. Make sure that git is installed.

    2. Run this command to download and install:

      ( set -x; cd "$(mktemp -d)" && OS="$(uname | tr '[:upper:]' '[:lower:]')" && ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && KREW="krew-${OS}_${ARCH}" && curl -fsSLO "${KREW}.tar.gz" && tar zxvf "${KREW}.tar.gz" && ./"${KREW}" install krew )
    3. 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:

      export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"

      and restart your shell.

    4. 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 .

      Introduction to Syself Autopilot
      Accessing the management cluster