Skip to content

Commit 5b5d280

Browse files
committed
Update readme
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
1 parent 83f90a7 commit 5b5d280

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -182,34 +182,34 @@ pod/nats-box condition met
182182
You can now start receiving and sending messages using
183183
the nats-box instance deployed into your namespace:
184184
185-
kubectl exec -it pod/nats-box /bin/sh
186-
187-
Using the test user account:
188-
189-
nats-sub -creds /var/run/nats/creds/test/test.creds -s nats 'test.>' &
190-
nats-pub -creds /var/run/nats/creds/test/test.creds -s nats test.hi 'Hello World'
191-
192-
Using the system account:
193-
194-
nats-sub -creds /var/run/nats/creds/sys/sys.creds -s nats://nats:4222 '>'
195-
185+
kubectl exec -it pod/nats-box -- /bin/sh -l
186+
187+
Using the test account user:
188+
189+
nats-sub test &
190+
nats-pub test 'Hello World'
191+
192+
Or try using the system account user to inspect all events in the cluster:
193+
194+
nats-sub -creds /var/run/nats/creds/sys/sys.creds '>'
195+
196196
The nats-box also includes nats-top which you can use to
197197
inspect the flow of messages from one of the members
198-
of the cluster.
198+
of the cluster (press 'q' to exit).
199199
200-
nats-top -s nats
200+
nats-top
201201
202202
NATS Streaming with persistence is also available as part of your cluster.
203203
It is installed under the STAN account so you can use the following credentials:
204-
205-
stan-pub -creds /var/run/nats/creds/stan/stan.creds -s nats -c stan test.hi 'Hello World'
206-
stan-sub -creds /var/run/nats/creds/stan/stan.creds -s nats -c stan 'test.>'
207-
204+
205+
stan-pub test 'Hello World'
206+
stan-sub test -all
207+
208208
You can also connect to your monitoring dashboard:
209-
209+
210210
kubectl port-forward deployments/nats-surveyor-grafana 3000:3000
211-
211+
212212
Then open the following in your browser:
213-
213+
214214
http://127.0.0.1:3000/d/nats/nats-surveyor?refresh=5s&orgId=1
215215
```

0 commit comments

Comments
 (0)