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?
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)