From c6064c663a11e6a0d40439d73b36013d5554cd1e Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Sun, 7 Jul 2019 06:07:26 -0400 Subject: [PATCH] website: change consul and nomad start up to reflect changes --- .../integrations/consul-connect/index.html.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/website/source/guides/integrations/consul-connect/index.html.md b/website/source/guides/integrations/consul-connect/index.html.md index f46723d06..8b5319553 100644 --- a/website/source/guides/integrations/consul-connect/index.html.md +++ b/website/source/guides/integrations/consul-connect/index.html.md @@ -44,19 +44,17 @@ handles mTLS communication to the Redis container. ### Consul -Connect requires Consul 1.6 (TODO Download link). Consul must advertise on a routable -address. The following steps show how to start a Consul dev agent configured for Connect. +Connect integration with Nomad requires Consul 1.6 (TODO Download link). The +Consul agent can be ran in dev mode with the following command: ```sh -$ go get -u github.com/hashicorp/go-sockaddr/cmd/sockaddr -$ export DEFAULT_IP=$(sockaddr eval GetAllInterfaces | sort "default" | exclude "type" "IPv6" | limit 1 | attr "address") -$ consul agent -dev -bind 0.0.0.0 -client 192.168.86.27 -advertise 192.168.86.27 +$ consul agent -dev ``` ### Nomad -Nomad must also schedule onto a routable interface. The following steps show how to start -a Nomad dev agent configured for Connect. +Nomad must schedule onto a routable interface in order for the proxies to connect +to each other. The following steps show how to start a Nomad dev agent configured for Connect. ```sh $ go get -u github.com/hashicorp/go-sockaddr/cmd/sockaddr @@ -166,4 +164,4 @@ job "api" { After running this job, visit the Nomad UI to see the Envoy proxies managed by Nomad both for the web application and its upstream Redis service. The Consul UI also shows -the registered Connect proxies. \ No newline at end of file +the registered Connect proxies.