From a24372ddde2266d58f6df3065cfab3b7ab755f85 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Fri, 10 Nov 2017 13:12:34 -0800 Subject: [PATCH] Update Rethink DB command (#5156) * Update Rethink DB command * Updates PR with feedback --- .../monitor-troubleshoot/troubleshoot.md | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/datacenter/dtr/2.1/guides/monitor-troubleshoot/troubleshoot.md b/datacenter/dtr/2.1/guides/monitor-troubleshoot/troubleshoot.md index 6b92d7b6c1..cdc1619ace 100644 --- a/datacenter/dtr/2.1/guides/monitor-troubleshoot/troubleshoot.md +++ b/datacenter/dtr/2.1/guides/monitor-troubleshoot/troubleshoot.md @@ -41,8 +41,27 @@ synchronized clocks to function correctly. Run this on the UCP node that has a DTR replica with the given replica id: -``` -docker run --rm -it --net dtr-br -p 9999:8080 svendowideit/ambassador dtr-rethinkdb-$REPLICA_ID 8080 +```bash +REPLICA_ID="" + +docker run \ + --rm \ + --net dtr-ol \ + --name db-proxy \ + -v dtr-ca-$REPLICA_ID:/ca \ + -p 9999:8080 \ + rethinkdb:2.3 \ + rethinkdb \ + proxy \ + --bind all \ + --canonical-address db-proxy \ + --driver-tls-key /ca/rethink/key.pem \ + --driver-tls-cert /ca/rethink/cert.pem \ + --driver-tls-ca /ca/rethink/cert.pem \ + --cluster-tls-key /ca/rethink/key.pem \ + --cluster-tls-cert /ca/rethink/cert.pem \ + --cluster-tls-ca /ca/rethink/cert.pem \ + --join dtr-rethinkdb-$REPLICA_ID.dtr-ol ``` Options to make this more secure: