This is a step-by-step guide that will help you deploy a project hosted on
This is a step-by-step guide that will help you use [Auto DevOps](index.md) to
GitLab.com to Google Kubernetes Engine, using [Auto DevOps](index.md).
deploy a project hosted on GitLab.com to Google Kubernetes Engine.
We will use the Kubernetes integration that GitLab provides, so you won't have
We will use GitLab's native Kubernetes integration, so you will not need
to create a Kubernetes cluster manually using the GCP console.
to create a Kubernetes cluster manually using the Google Cloud Platform console.
We will create and deploy a simple application that we create from a GitLab template.
## Configuring your Google account
## Configuring your Google account
Before creating and connecting your Kubernetes cluster to your GitLab project,
Before creating and connecting your Kubernetes cluster to your GitLab project,
you have to set up your Google Cloud account. If you don't already have one, go
you need a Google Cloud Platform account. If you don't already have one,
and create it at https://console.cloud.google.com. If you already have a
sign up at https://console.cloud.google.com. You'll need to either sign in with an existing
Google account that you use to access Gmail, etc., you can use it to sign in
Google account (for example, one that you use to access Gmail, Drive, etc.) or create a new one.
the Google Cloud.
1. Follow the steps as outlined in the ["Before you begin" section of the Kubernetes Engine docs](https://cloud.google.com/kubernetes-engine/docs/quickstart#before-you-begin)
1. Follow the steps as outlined in the ["Before you begin" section of the Kubernetes Engine docs](https://cloud.google.com/kubernetes-engine/docs/quickstart#before-you-begin)
in order for the required APIs and related services to be enabled.
in order for the required APIs and related services to be enabled.
...
@@ -25,14 +25,14 @@ Google Kubernetes Engine Integration. All you have to do is [follow this link](h
...
@@ -25,14 +25,14 @@ Google Kubernetes Engine Integration. All you have to do is [follow this link](h
## Creating a new project from a template
## Creating a new project from a template
We will use one of GitLab's project templates to get started. AS the name suggests,
We will use one of GitLab's project templates to get started. As the name suggests,
those projects provide a barebone of an application built on some well known frameworks.
those projects provide a barebones application built on some well-known frameworks.
1.Find the plus icon (**+**) at the top of the navigation bar, click it and select
1.In GitLab, click the plus icon (**+**) at the top of the navigation bar and select
**New project**.
**New project**.
1. Go to the **Create from template** tab where you can choose among a Ruby on
1. Go to the **Create from template** tab where you can choose among a Ruby on
Rails, a Spring, or a NodeJS Express project. For the sake of the example
Rails, Spring, or NodeJS Express project. For this example,
@@ -42,23 +42,16 @@ those projects provide a barebone of an application built on some well known fra
...
@@ -42,23 +42,16 @@ those projects provide a barebone of an application built on some well known fra
![Create project](img/guide_create_project.png)
![Create project](img/guide_create_project.png)
1.Finally, click on the **Create project** button.
1.Click **Create project**.
Now that the project is created, the next step is to create the Kubernetes cluster
Now that the project is created, the next step is to create the Kubernetes cluster
under which this application will be deployed.
under which this application will be deployed.
## Creating a Kubernetes cluster
## Creating a Kubernetes cluster from within GitLab
One thing you should notice after you created the project is the **Add Kubernetes cluster**
1. On the project's landing page, click the button labeled **Add Kubernetes cluster**. (Note that this option is also available when you navigate to Operations > Kubernetes.)
button on the project's landing page. Go ahead and click it.