Creation of a project in GitLab

Before installing k3s, we create a new project on Gitlab, which we call api.

Once created, we go into the Operations > Kubernetes menu.

From there we have two choices:

We can create a Kubernetes cluster on GKE (Google Kubernetes Engine).

We can import the configuration of an existing Kubernetes cluster (no matter where it was created).

Note: In the current release of GitLab, the creation of a new cluster is limited to GKE. GitLab, any plan to allow this on other Kubernetes providers (AKS, EKS, DOKS …)? :)

We choose the Add existing cluster tab.

From there, we need to fill several fields to provide the configuration of the cluster we need to integrate. Let’s keep this tab open and create a brand new Kubernetes cluster first.