Setting runners.privileged to true does not produce privileged containers

We could not get a docker:dind image to run with the current chart because the privileged flag does not actually create privileged containers. The KUBERNETES_PRIVILEGED environment variable alone does not seem to be enough.

Steps to reproduce:

  • Install the gitlab-runner with helm, adding the following flag: --set runners.privileged=true

Workaround:

Add the DOCKER_PRIVILEGED=true environment variable to the templates/_env_vars.tpl file.