Kubernetes microk8s

I am unable to setup GitLab to work with microk8s. Both GitLab and microk8s are self-hosted with self-signed certs.

I have followed the documentation from Gitlab on Kubernetes

here and stack overflow with no success I still receive the same error.

There was a problem authenticating with your cluster. Please ensure your CA Certificate and Token are valid.

Are there logs I could look further into for details?

Any help would be much appreciated!


can someone of GitLab maybe give us a short hint if this is supported at all?
After some hours of research my guess is, that they don’t want it to work with self-hosted Kubernetes… :thinking:

I successfully set up GitLab to work with microk8s. I needed to edit /var/snap/microk8s/current/certs/csr.conf.template and add the hostname and fqdn to the [ alt_names ] section.
For ingress to work properly I had to enable metallb with the IP address of the system running microk8s.


Hi! Thanks a lot for the feedback here. Could you please elaborate a bit more on what exactly is to be added and the format?