Skip to content

Add docker services to k8s

This is a general Merge Request template. Consider to choose a template from the list above if it will match your case more.

What does this MR do?

This MR adds a configuration option to the Kubernetes executor to specify "services" to run with every runner job.

Why was this MR needed?

The Docker Executor includes a Services config that let's us specify services to run with every runner job. This is especially useful when building docker images inside a "docker in docker" setup.

The Kubernetes executor does not support that out of the box which means each project needs to specify the following inside every .gitlab-ci.yml file for every project.

services:
  - docker:dind

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

Edited by John Eckhart

Merge request reports