Gitlab hero border pattern left svg Gitlab hero border pattern right svg

101 - Creating Kubernetes cluster

Objective: Setup Auto DevOps in GitLab.

You will need Kubernetes cluster up and running in order to use GitLab Auto DevOps feature. This is a step by step guide to help you create Kubernetes cluster in Google Cloud Platform.

More details Auto DevOps


You need a Google Cloud Platform account, GitLab employees will have this. Ensure you are logged in with your GitLab account.

Steps to create Kubernetes cluster

Step What it looks like
1. Open a browser and login to Google Kubernetes Engine  
2. GitLab employees - Sign-in using your GitLab email.  
3. GitLab employees should use the gitlab-demos project. Others should select or create a project to work in. gitlab demos
4. Under COMPUTE on the side bar select Kubernetes Engine -> Clusters. kubernetes engine
5. Click CREATE CLUSTER. kubernetes engine
6. Set name for your cluster.
GitLab product marketing employees, the naming convention is pmm_<yourname>, keep a short name (up to 16 chars).
Set the number of nodes to 3, and expand the page for additional settings.
kubernetes engine
7. GitLab employees should select the 'demonet' network in Networking. Others should select or create network. kubernetes engine
8. Enable legacy authorization. kubernetes engine
9. You are ready to create the cluster, click Create. kubernetes engine
10. It will take a few minutes to create the cluster, once it is created, you will see your just created cluster on the list. kubernetes engine
11. Now you are ready to integrate your GitLab project with Kuberenetes, and use the Auto DevOps feature.  
12. Cleanup steps PLACEHOLDER