Skip to content

Instantly share code, notes, and snippets.

@smcquay
Last active July 22, 2016 07:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smcquay/11958b7e781d72662e793d45722d3323 to your computer and use it in GitHub Desktop.
Save smcquay/11958b7e781d72662e793d45722d3323 to your computer and use it in GitHub Desktop.
etcdctl rm -r /traefik
echo -n "tmp" | etcdctl set /traefik/frontends/fe1/backend
echo -n "Host:impa.local" | etcdctl set /traefik/frontends/fe1/routes/test_1/rule
echo -n "http" | etcdctl set /traefik/frontends/fe1/entrypoints
echo -n "http://impa.local:8000" | etcdctl set /traefik/backends/tmp/servers/server1/url
echo -n "1" | etcdctl set /traefik/backends/tmp/servers/server1/weight
[entryPoints]
[entryPoints.http]
address = ":2020"
[web]
address = ":2021"
[etcd]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment