using private image registry for Kubernetes executor
Description
I've seen some similar issues (#1828 (closed)) for other executors and I was thinking that it would be nice if we have it for k8s too.
I've seen some similar issues (#1828 (closed)) for other executors and I was thinking that it would be nice if we have it for k8s too.
Looks like there was no activity on this ticket, but the topic seems pretty important; unless i am missing the point of how to deploy an image on kubernetes from a gitlab registry?
the only way I know of is to create a separate "DEVELOPER"-level account, use that info to generate secret in kubernetes and then use that secret to login and pull image from gitlab registry through VARIABLES to configuration template similar to:
spec:
imagePullSecrets:
- name: quay-readonly
Seems like it is even more relevant now, since kubernetes got it's own executor: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/tree/master/executors/kubernetes
I'm also in need of this before we can use the Kubernetes executor with GitLab. @tmaczukin noticed you documented the initial lack of support for private registries with Kubernetes executor, how can we make it work?
mentioned in merge request !551 (merged)
closed via commit d03ea54b