Skip to content

Instantly share code, notes, and snippets.

@benley
Last active November 8, 2016 10:27
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benley/091a071b45ce2a8dc6673038c2f28ea5 to your computer and use it in GitHub Desktop.
Save benley/091a071b45ce2a8dc6673038c2f28ea5 to your computer and use it in GitHub Desktop.
example: linkerd config for aurora job backends
# Example linkerd.conf for aurora jobs
admin: { port: '31218' }
namers:
- kind: io.l5d.serversets
prefix: /zk/dal09
zkAddrs:
- { host: zk1.dal09.prod.example.com, port: '2181'}
- { host: zk2.dal09.prod.example.com, port: '2181'}
- { host: zk3.dal09.prod.example.com, port: '2181'}
- kind: io.l5d.serversets
prefix: /zk/us-east-1
zkAddrs:
- { host: zk1.us-east-1.prod.example.com, port: '2181'}
- { host: zk2.us-east-1.prod.example.com, port: '2181'}
- { host: zk3.us-east-1.prod.example.com, port: '2181'}
- kind: io.l5d.serversets
prefix: /zk/us-west-1
zkAddrs:
- { host: zk1.us-west-1.prod.example.com, port: '2181'}
- { host: zk2.us-west-1.prod.example.com, port: '2181'}
- { host: zk3.us-west-1.prod.example.com, port: '2181'}
- kind: io.l5d.serversets
prefix: /zk/us-west-2
zkAddrs:
- { host: zk1.us-west-2.prod.example.com, port: '2181'}
- { host: zk2.us-west-2.prod.example.com, port: '2181'}
- { host: zk3.us-west-2.prod.example.com, port: '2181'}
routers:
- protocol: http
httpAccessLog: logs/access_log
servers:
- {ip: 0.0.0.0, port: '4140'}
baseDtab: |
# Route paste.corp.example.com to aurora job dal09/siteops/devel/hastebin
/com/example/corp/paste => /com/example/aurora/dal09/siteops/devel/hastebin;
# Route irc.corp.example.com to aurora job us-west2/siteops/devel/irc
/com/example/corp/irc => /com/example/aurora/us-west-2/siteops/devel/irc;
# Route go.corp.example.com to aurora job dal09/app-platform/devel/go
/com/example/corp/go => /com/example/aurora/dal09/app-platform/devel/go;
# http://go.corp/ and http://go/ also resolve to go.corp.example.com
/corp/go => /com/example/corp/go;
/go => /com/example/corp/go;
# Map http://jobname.environ.role.cluster.example.com
# to /zk/cluster/aurora/role/environ/jobname
/com/example/aurora/dal09 => /#/zk/dal09/aurora;
/com/example/aurora/us-east-1 => /#/zk/us-east-1/aurora;
/com/example/aurora/us-west-1 => /#/zk/us-west-1/aurora;
/com/example/aurora/us-west-2 => /#/zk/us-west-2/aurora;
/com:4140 => /com;
/host => /$/io.buoyant.http.domainToPath;
/method_header => /$/io.buoyant.http.anyMethodPfx/host;
/http/1.1 => /method_header;
@a-nldisr
Copy link

a-nldisr commented Nov 8, 2016

Hi are you planning to submit this to the Linkerd folks as an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment