Allow specifying which host should run ZeroTier
This commit is contained in:
@@ -10,6 +10,8 @@ services:
|
||||
- -d
|
||||
devices:
|
||||
- "/dev/net/tun"
|
||||
labels:
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||
network_mode:
|
||||
- "host"
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -18,3 +18,15 @@ catalog:
|
||||
default: "/var/lib/Storage-Local/zerotier-one"
|
||||
required: false
|
||||
type: string
|
||||
- variable: "HOST_LABEL_KEY"
|
||||
label: "Host Label Key"
|
||||
description: |
|
||||
The Label Key on the host which ZeroTier should be deployed
|
||||
required: true
|
||||
type: string
|
||||
- variable: "HOST_LABEL_VALUE"
|
||||
label: "Host Label Value"
|
||||
description: |
|
||||
The Label Value on the host which ZeroTier should be deployed
|
||||
required: true
|
||||
type: string
|
||||
Reference in New Issue
Block a user