Parameterise the host LB host label used for affinity scheduling.

This commit is contained in:
Chris Fordham 2017-07-25 22:12:06 +10:00
parent f826533c59
commit caa454c123
2 changed files with 7 additions and 1 deletions

View File

@ -113,4 +113,4 @@ services:
- ${host_port}:${host_port}
labels:
io.rancher.scheduler.global: 'true'
io.rancher.scheduler.affinity:host_label_soft: drone_lb=true
io.rancher.scheduler.affinity:host_label_soft: ${drone_lb_host_label}

View File

@ -148,6 +148,12 @@ catalog:
- 'true'
- 'false'
default: 'false'
- variable: drone_lb_host_label
label: Drone LB Host Label
description: Host Label (soft affinity) for scheduling of the load balancer service.
required: true
default: "drone_lb=true"
type: string
services:
agent:
scale: ${agent_scale}