Added scheduler affinity
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user