Connect a cluster to GitLab

The certificate-based Kubernetes integration with GitLab was deprecated in GitLab 14.5. To connect your clusters, use the GitLab agent.

Cluster levels (DEPRECATED)

Deprecated in GitLab 14.5.

caution

Choose your cluster’s level according to its purpose:

LevelPurpose
Project levelUse your cluster for a single project.
Group levelUse the same cluster across multiple projects within your group.
Instance levelUse the same cluster across groups and projects within your instance.

View your clusters

To view the Kubernetes clusters connected to your project, group, or instance, open the cluster’s page according to your cluster’s level.

Project-level clusters:

  1. On the top bar, select Menu > Projects and find your project.
  2. On the left sidebar, select Infrastructure > Kubernetes clusters.

Group-level clusters:

  1. On the top bar, select Menu > Groups and find your group.
  2. On the left sidebar, select Kubernetes.

Instance-level clusters:

  1. On the top bar, select Menu > Admin.
  2. On the left sidebar, select Kubernetes.

Security implications for clusters connected with certificates

Connecting clusters to GitLab through cluster certificates was deprecated in GitLab 14.5.

caution
The whole cluster security is based on a model where developers are trusted, so only trusted users should be allowed to control your clusters.

The use of cluster certificates to connect your cluster grants access to a wide set of functionalities needed to successfully build and deploy a containerized application. Bear in mind that the same credentials are used for all the applications running on the cluster.