1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update nats-external-nlb.md

This commit is contained in:
Ginger Collison 2020-05-07 11:11:19 -05:00 committed by GitHub
parent c5cbd20aed
commit 57bfc31649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ with NATS for external access, sometimes due to policy it might
help to use one. If that is the case, then one option would be help to use one. If that is the case, then one option would be
to use an L4 load balancer that has raw tcp support. to use an L4 load balancer that has raw tcp support.
In the example below, you can find how to use a [AWS Network Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html) In the example below, you can find how to use an [AWS Network Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html)
to connect externally to a cluster that has TLS setup. to connect externally to a cluster that has TLS setup.
```sh ```sh
@ -42,5 +42,5 @@ nats-nlb LoadBalancer 10.100.67.123 a18b60a948fc611eaa7840286c60df32-9e96a
$ nats-pub -s nats://a18b60a948fc611eaa7840286c60df32-9e96a2af4b5675ec.elb.us-east-2.amazonaws.com:4222 -creds nsc/nkeys/creds/KO/A/test.creds test.foo bar $ nats-pub -s nats://a18b60a948fc611eaa7840286c60df32-9e96a2af4b5675ec.elb.us-east-2.amazonaws.com:4222 -creds nsc/nkeys/creds/KO/A/test.creds test.foo bar
``` ```
Also, it would be recommended to disable [no_advertise](https://docs.nats.io/nats-server/configuration/clustering/cluster_config) Also, it would be recommended to disable [no_advertise](nats-server/configuration/clustering/cluster_config.md)
to avoid gossiping internal addresses from pods in Kubernetes to NATS clients. to avoid gossiping internal addresses from pods in Kubernetes to NATS clients.