How to connect Gitlab and on-premise Kubernetes cluster

9/21/2018

I have a Kubernetes cluster running on my laptop and I want to connect it to Gitlab so that I can deploy my application to Kubernetes from Gitlab pipelines. I was reading the official documentation but could not find anything useful.

Can anyone shade some light on how to achieve this?

-- rajan.sngh
gitlab
kubernetes
minikube

1 Answer

9/21/2018

You can set up a pod in your local Kubernetes as a Gitlab Runner. More information (setup a runner) here, here, and (Kubernetes Runner) here

Note that it should work if you have egress traffic allowed In most cases, egress is allowed unless your environment is following some sort of compliance. (ie. PCI, SOX, etc)

-- Rico
Source: StackOverflow