Allow specifying which host should run ZeroTier
This commit is contained in:
@@ -10,6 +10,8 @@ services:
|
|||||||
- -d
|
- -d
|
||||||
devices:
|
devices:
|
||||||
- "/dev/net/tun"
|
- "/dev/net/tun"
|
||||||
|
labels:
|
||||||
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE}
|
||||||
network_mode:
|
network_mode:
|
||||||
- "host"
|
- "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -17,4 +17,16 @@ catalog:
|
|||||||
The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location.
|
The path to where ZeroTier should hold it's persistent files. Preferrably a local-only location.
|
||||||
default: "/var/lib/Storage-Local/zerotier-one"
|
default: "/var/lib/Storage-Local/zerotier-one"
|
||||||
required: false
|
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
|
type: string
|
||||||
Reference in New Issue
Block a user