Kind: document how to use a kind image as gitlab service

Created on 17 Jun 2019  路  12Comments  路  Source: kubernetes-sigs/kind

What would you like to be added:

Would it be possible to explain/support the usage of a kind image that enables the use
of kind as a gitlab service: https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service

Why is this needed:

It would ease the use of kind in order to do simple in gitlab CI tests of k8s usage.

help wanted kinfeature prioritbacklog

Most helpful comment

Once I'll manage to find a proper configuration working (kind and gitlab) (cf #630) I'll definitely post something here in order to share with others.

All 12 comments

This is linked to the usage described in #619

This should probably go against https://github.com/kind-ci/examples.

kind works anywhere docker works properly + you can get the static binary so we don't publish images like this currently.

Note that gitlab will not have a free tier for CI soon, so after September we are exceedingly unlikely to do any support from the examples repo... https://about.gitlab.com/2019/03/21/six-more-months-ci-cd-github/

/priority backlog

Ok I see your point.
Our use case was in our privately hosted gitlab CI, but that use case I guess we could go along either with bringing the kind binary into our job image or craft such a service image ourselves.
Thank you for the fast answer.

馃憤

An example for gitlab in the CI examples repo would be awesome, I don't think we'll be able to maintain it easily though. I don't have access to a paid gitlab and the free CI is going away 馃槵

I think the only core contributor using gitlab CI is @munnerz and I'm pretty sure only with the Kubernetes executor. We'll want external help for documenting this one.
/help

@BenTheElder:
This request has been marked as needing help from a contributor.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

I think the only core contributor using gitlab CI is @munnerz and I'm pretty sure only with the Kubernetes executor. We'll want external help for documenting this one.
/help

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Once I'll manage to find a proper configuration working (kind and gitlab) (cf #630) I'll definitely post something here in order to share with others.

@TheErk can we close this? is that link in the previous comment solving the issue?

I'll try the solution of the link today and come back here right away.

So the provided solution does not work for me because my current gitlab-ci config does not seem allow me to run docker:dind as a service (service is not starting) as done https://github.com/kind-ci/examples/blob/9021a580cbe505a5eaca98d9ab09c43e92adbe07/.gitlab-ci.yml#L6

We should nevertheless close this issue because this appear to be a gitlab ci config issue on my side and nothing else.

Was this page helpful?
0 / 5 - 0 ratings