Setup Gitlab CI/CD pipeline for Kubernetes using Helm

Nidhi
4 min readFeb 5, 2021

In this blog, we will setup a Gitlab CI/CD pipeline for Kubernetes using Helm chart.

We will be deploying a sample Drupal application using Helm chart and deploy in GKE

Agenda:

  1. Create a git repo in gitlab
  2. Create a .gitlab-ci.yaml and values.yaml file
  3. Create Kubernetes cluster from Gitlab
  4. Connect to Kubernetes cluster using cloud shell
  5. Create ingress controller on the Kubernetes Cluster
  6. Validate the application on the browser

Git Repo

Setup a GKE using gitlab

Go to your project in Gitlab and then

  1. Click on Operations -> Kubernetes

Click on Connect Cluster with certificate

--

--