review fixes

This commit is contained in:
Tayyeb 2017-08-02 01:43:48 +04:30
parent c1e33ae921
commit 69539807d5
2 changed files with 12 additions and 3 deletions

View File

@ -27,7 +27,6 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- --docker-privileged
labels:
io.rancher.container.pull_image: always
io.rancher.container.start_once: 'true'
gitlab-runner:
@ -42,5 +41,7 @@ services:
- run
labels:
io.rancher.sidekicks: gitlab-runner-config
io.rancher.container.pull_image: always
io.rancher.scheduler.global: 'true'
{{- if ne .Values.host_label ""}}
io.rancher.scheduler.affinity:host_label: ${host_label}
{{- end}}

View File

@ -29,9 +29,17 @@ catalog:
default: "dev"
required: false
- variable: "host_label"
label: "Host with Label to deploy gitlab-runner on"
description: |
Host label to use as gitlab-runner 'value' tag.
Example: 'gitlab-runner=true'
type: "string"
default: ""
required: false
services:
gitlab-runner-config:
scale: 1
start_on_create: true
gitlab-runner:
start_on_create: true