Image for post
Image for post
Photo by amin khorsand on Unsplash

GitLab has strong Kubernetes integration. Unfortunately, GitLab has its own idea of how apps are deployed in the cluster. This is not necessarily the method of choice, especially for existing clusters. But you can reach your goal very easily without the existing integration. And with RBAC you can secure your CI job so that it is not allowed to do more than is absolutely necessary.

First we need a deployment (configurations for service, ingress, etc. omitted).

The name of the deployment my-app is important, we will need that later.

In order for GitLab to have access to the deployment, we have to create a ServieAccount and set up the necessary authorizations. …

About

Tristan “tril” Lins

A mixture of developer, software architect and administrator — or in modern words: a devop

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store