website: minor connect improvements
This commit is contained in:
parent
c6064c663a
commit
1ef8b37d8d
|
@ -34,11 +34,11 @@ in Connect continue to work even as the application scales up or down or gets re
|
||||||
# Nomad Consul Connect Example
|
# Nomad Consul Connect Example
|
||||||
|
|
||||||
The following section walks through an example to enable secure communication
|
The following section walks through an example to enable secure communication
|
||||||
between a web application and a Redis container. The web application and
|
between a web application and a Redis container. The web application and the
|
||||||
the Redis container are managed by Nomad. Nomad additionally configures
|
Redis container are managed by Nomad. Nomad additionally configures Envoy
|
||||||
Envoy proxies to run along side these applications. The web application uses
|
proxies to run along side these applications. The web application is configured
|
||||||
a localhost port for all Redis communication. The proxy is managed by Nomad, and
|
to connect to Redis via localhost and Redis's default port (6379). The proxy is
|
||||||
handles mTLS communication to the Redis container.
|
managed by Nomad, and handles mTLS communication to the Redis container.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
|
@ -53,8 +53,9 @@ $ consul agent -dev
|
||||||
|
|
||||||
### Nomad
|
### Nomad
|
||||||
|
|
||||||
Nomad must schedule onto a routable interface in order for the proxies to connect
|
Nomad must schedule onto a routable interface in order for the proxies to
|
||||||
to each other. The following steps show how to start a Nomad dev agent configured for Connect.
|
connect to each other. The following steps show how to start a Nomad dev agent
|
||||||
|
configured for Connect.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get -u github.com/hashicorp/go-sockaddr/cmd/sockaddr
|
$ go get -u github.com/hashicorp/go-sockaddr/cmd/sockaddr
|
||||||
|
@ -62,6 +63,12 @@ $ export DEFAULT_IFACE=$(sockaddr eval 'GetAllInterfaces | sort "default" | uniq
|
||||||
$ sudo nomad agent -dev -network-interface $DEFAULT_IFACE
|
$ sudo nomad agent -dev -network-interface $DEFAULT_IFACE
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Alternatively if you know the network interface Nomad should use:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ sudo nomad agent -dev -network-interface eth0
|
||||||
|
```
|
||||||
|
|
||||||
## Run Redis Container
|
## Run Redis Container
|
||||||
|
|
||||||
Run the following job specification using `nomad run`. This job
|
Run the following job specification using `nomad run`. This job
|
||||||
|
|
Loading…
Reference in a new issue