traefik/docs/configuration/backends/mesos.md

94 lines
1.7 KiB
Markdown
Raw Normal View History

# Mesos Generic Backend
2017-08-25 19:32:33 +00:00
2017-09-11 17:10:04 +00:00
Træfik can be configured to use Mesos as a backend configuration.
2017-08-25 19:32:33 +00:00
```toml
################################################################
# Mesos configuration backend
################################################################
2017-09-11 17:10:04 +00:00
# Enable Mesos configuration backend.
2017-08-25 19:32:33 +00:00
[mesos]
# Mesos server endpoint.
# You can also specify multiple endpoint for Mesos:
# endpoint = "192.168.35.40:5050,192.168.35.41:5050,192.168.35.42:5050"
# endpoint = "zk://192.168.35.20:2181,192.168.35.21:2181,192.168.35.22:2181/mesos"
#
# Required
2017-09-11 17:10:04 +00:00
# Default: "http://127.0.0.1:5050"
2017-08-25 19:32:33 +00:00
#
endpoint = "http://127.0.0.1:8080"
2017-09-11 17:10:04 +00:00
# Enable watch Mesos changes.
2017-08-25 19:32:33 +00:00
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: true
2017-08-25 19:32:33 +00:00
#
watch = true
# Default domain used.
# Can be overridden by setting the "traefik.domain" label on an application.
#
# Required
#
domain = "mesos.localhost"
2017-09-11 17:10:04 +00:00
# Override default configuration template.
# For advanced users :)
2017-08-25 19:32:33 +00:00
#
# Optional
#
# filename = "mesos.tmpl"
2017-09-11 17:10:04 +00:00
# Expose Mesos apps by default in Traefik.
2017-08-25 19:32:33 +00:00
#
# Optional
2017-09-11 17:10:04 +00:00
# Default: true
2017-08-25 19:32:33 +00:00
#
2017-09-11 17:10:04 +00:00
# ExposedByDefault = false
2017-08-25 19:32:33 +00:00
# TLS client configuration. https://golang.org/pkg/crypto/tls/#Config
#
# Optional
#
# [mesos.TLS]
# InsecureSkipVerify = true
2017-09-11 17:10:04 +00:00
# Zookeeper timeout (in seconds).
2017-08-25 19:32:33 +00:00
#
# Optional
# Default: 30
#
# ZkDetectionTimeout = 30
2017-09-11 17:10:04 +00:00
# Polling interval (in seconds).
2017-08-25 19:32:33 +00:00
#
# Optional
# Default: 30
#
# RefreshSeconds = 30
2017-09-11 17:10:04 +00:00
# IP sources (e.g. host, docker, mesos, rkt).
2017-08-25 19:32:33 +00:00
#
# Optional
#
# IPSources = "host"
2017-09-11 17:10:04 +00:00
# HTTP Timeout (in seconds).
2017-08-25 19:32:33 +00:00
#
# Optional
# Default: 30
#
# StateTimeoutSecond = "30"
2017-09-11 17:10:04 +00:00
# Convert groups to subdomains.
# Default behavior: /foo/bar/myapp => foo-bar-myapp.{defaultDomain}
# with groupsAsSubDomains enabled: /foo/bar/myapp => myapp.bar.foo.{defaultDomain}
#
# Optional
# Default: false
#
# groupsAsSubDomains = true
2017-08-25 19:32:33 +00:00
```