Conversation
In order for this Chart to properly work, you need to specify the GitLab URL that you want to register the runner to. And the registration token, taken from the GitLab instance. (Either from the Shared Runners page for Admins, or any Project's CI/CD Pipelines settings)
Hi @twk3. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with 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. I understand the commands that are listed here. |
Getting the token requires manual involvement from a user and Is there a way to export that token from the gitlab pod as a secret and consume the secret in the runner? |
value: true | ||
{{ end }} | ||
- name: KUBERNETES_NAMESPACE | ||
value: {{ default "" .Values.runners.namespace | quote }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when not specified would it make sense to default to Release.Namespace
instead?
ref: https://github.com/kubernetes/helm/blob/master/docs/charts.md#predefined-values
Hey, tested this with k8s on GCE and am getting errors with docker builds. Is this a mistake on our side or something intended? |
@rothgar - I tried to automate the token retrieval process here: https://github.com/honestbee/gitlab-infra#registering-multi-runner |
…er deployment The value was being passed as a boolean when it should have been a string
@sameersbn thanks, I added that in @kwiesmueller there was a bug in how I passed the privileged env variable. I updated it, and it should now be fixed. kube clusters that allow privileged should work with dind if you flag privileged to true now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That fixed it on my side as well. Thanks.
What can I do to help here? I just deployed the chart from a local clone and at first sight everything looks ok! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great, I just have a few comments.
@@ -0,0 +1,27 @@ | |||
{{- if default "" .Values.gitlabUrl }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you use default
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying what was used in the gitlab-ce chart. I've dropped them here now.
stable/gitlab-runner/Chart.yaml
Outdated
@@ -0,0 +1,15 @@ | |||
name: gitlab-runner | |||
version: 0.1.0 | |||
description: GitLab Runner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we improve the description and add an icon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated with better description and added icon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, there is a mismatch of the values in values.yaml and the template files.
The rest looks good, so far. Test instance is starting up.
stable/gitlab-runner/values.yaml
Outdated
## The GitLab Server URL (with protocol) that want to register the runner against | ||
## ref: https://docs.gitlab.com/runner/commands/README.html#gitlab-runner-register | ||
## | ||
# gitlabURL: http://gitlab.your-domain.com/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You got a not matching value here: gitlabURL in default values but gitlabUrl in all templates.
Just discovered this while testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
Fix values.yml reference to gitlabUrl, case issue Drop unnessesary defaulting in the Notes.txt Add better chart description, and include icon
@prydonius I've updated the chart with the requested changes |
@prydonius are there any additional changes needed? |
@twk3 would be nice if you could enable the metrics server for the runner. |
+1 for optional metrics |
@twk3 also |
Metrics would be nice to have, that's true... |
@kwiesmueller can you share the image you use for |
@rimusz @kwiesmueller this is my take on it: |
@rimusz the few builds currently running are using golang:1.8 |
At the risk of offending everyone who's worked on this so far, I have to ask: is there value in adding & maintaining this chart when GitLab has their own, supported version? https://gitlab.com/charts/charts.gitlab.io/tree/master/charts/gitlab-runner #justasking |
Benefits of keeping this chart
Downsides
I'm in favor or getting rid of this one and using the chart provided by gitlab. Similarly I'm in favor of using containers from any project that provides their own containers (e.g. postgres) over community built/maintained containers. It makes discovery harder but reduces duplicate work and gets features and fixes out faster. On the flip side, if someone is running kubernetes and wants to deploy gitlab they may not know about helm+charts. If gitlab documents "Here's how to deploy gitlab on kubernetes with this chart" it may let more people discover helm and the work happening here. |
@mgoodness: |
@rothgar: |
A similar conversation regarding the gitlab repo charts is taking place in this issue: #1138 |
@twk3 I also agree that we should lean on the officially supported chart. I don't think the duplicate work is worth the maintenance burden. We will be looking at how to delegate chart responsibility to other repositories soon and will update accordingly. Do you mind if we close this out until then? |
Closing in favor of the upstream chart. Feel free to re-open if/when it's decided otherwise. |
In order for this Chart to properly work, you need to specify the GitLab URL that you want to register the runner to. And the registration token, taken from the GitLab instance. (Either from the Shared Runners page for Admins, or any Project's CI/CD Pipelines settings)