Skip to content

Authenticate Kubernetes with Gitlab CI token for the registry

Currently the Gitlab registry has to be public for Kubernetes to be able to retrieve an image, this can be a somewhat bothersome limitation especially for self-hosted private companies or organizations.

A very simple solution is to authenticate the Kubernetes with the same CI credentials as is being authenticated with in the build command.