From 5ba8c8b47a5f6f72b73de8abf20520769b404566 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 24 Jul 2019 10:53:00 +0200 Subject: [PATCH] Add Vault example to the traffic shaping section. Add a small section to the Traffic Shaping documentation detailing how to use Fabio to route traffic for Vault to the active node. Ref: https://twitter.com/jrasell/status/1100724689767485440 --- docs/content/feature/traffic-shaping.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/content/feature/traffic-shaping.md b/docs/content/feature/traffic-shaping.md index 8e2c72fe2..f9dfd1e15 100644 --- a/docs/content/feature/traffic-shaping.md +++ b/docs/content/feature/traffic-shaping.md @@ -19,3 +19,12 @@ publishing the same prefix. route weight service-b www.kjca.dev/auth/ weight 0.05 tags "version-15,dc-fra" ``` +### Vault Example + +[Vault](https://www.vaultproject.io) is a tool by [HashiCorp](https://www.hashicorp.com/) for managing secrets and protecting sensitive data. When running in HA mode, Vault will have a single active node which is responsible for responding the API requests. Fabio can be used to ensure traffic is routed to the correct server via traffic shaping. + +The following command will allocate 100% of traffic to `vault.company.com` to the instance of `vault` which is registered with the tag `active`. + +``` +route weight vault vault.company.com weight 1.00 tags "active" +```