Added scheduler affinity

This commit is contained in:
WilliamMiceli
2018-07-10 19:36:53 -04:00
parent 8942355bea
commit 33cbe17152
2 changed files with 14 additions and 2 deletions

View File

@@ -3,10 +3,14 @@ services:
traefik:
image: traefik:latest
restart: always
labels:
{{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
ports:
- 80:80
- 443:443
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /RancherStorage/Traefik/traefik.toml:/traefik.toml

View File

@@ -7,4 +7,12 @@ catalog:
# maximum_rancher_version:
# upgrade_from:
# uuid: traefik-0
# questions:
questions:
- variable: "HOST_LABEL"
label: "Host Label Key/Value Pair"
description: |
The Key/Value pair on the host which the stack should be deployed.
default: "host.id=Proxy1"
required: false
type: string