1
1
#! /bin/sh
2
2
set -eu
3
3
4
- NATS_K8S_VERSION=https://raw.githubusercontent.com/nats-io/nats.k8s/afe90c5392dfd8e24d970587c217f90a917bf567
4
+ NATS_K8S_VERSION=https://raw.githubusercontent.com/nats-io/nats.k8s/9fd463279f8ccafaa50d12977bad583520551852
5
5
6
6
NATS_SERVER_YML=${DEFAULT_NATS_SERVER_YML:= $NATS_K8S_VERSION / nats-server/ nats-server-with-auth.yml}
7
7
@@ -198,7 +198,7 @@ main() {
198
198
199
199
CYAN=' \033[0;36m'
200
200
NC=' \033[0m'
201
- echo " ${CYAN} "
201
+ echo -e " ${CYAN} "
202
202
echo " ##############################################"
203
203
echo " # #"
204
204
echo " # _ _ _ _____ ____ _ _____ ____ #"
@@ -224,7 +224,7 @@ main() {
224
224
echo " | |"
225
225
echo " +-------------------------------------------+"
226
226
echo
227
- echo " ${NC} "
227
+ echo -e " ${NC} "
228
228
229
229
if [ $with_auth = true ]; then
230
230
# Skip if directory already exists
@@ -266,61 +266,61 @@ main() {
266
266
kubectl wait --for=condition=Ready pod/nats-0 --timeout=60s
267
267
kubectl wait --for=condition=Ready pod/nats-box --timeout=60s
268
268
269
- echo " ${CYAN} "
269
+ echo -e " ${CYAN} "
270
270
echo " +------------------------------------------+"
271
271
echo " | |"
272
272
echo " | Done. Enjoy your new NATS cluster! |"
273
273
echo " | |"
274
274
echo " +------------------------------------------+"
275
- echo " ${NC} "
275
+ echo -e " ${NC} "
276
276
echo " === Getting started"
277
277
echo
278
278
echo " You can now start receiving and sending messages using "
279
279
echo " the nats-box instance deployed into your namespace:"
280
280
echo
281
- echo " ${CYAN} kubectl exec -it pod/nats-box -- /bin/sh -l ${NC} "
281
+ echo -e " ${CYAN} kubectl exec -it pod/nats-box -- /bin/sh -l ${NC} "
282
282
echo
283
283
if [ $with_auth = true ]; then
284
284
echo " Using the test account user:"
285
- echo " ${CYAN} "
285
+ echo -e " ${CYAN} "
286
286
echo " nats-sub test &"
287
287
echo " nats-pub test 'Hello World'"
288
- echo " ${NC} "
288
+ echo -e " ${NC} "
289
289
echo " Or try using the system account user to inspect all events in the cluster:"
290
- echo " ${CYAN} "
290
+ echo -e " ${CYAN} "
291
291
echo " nats-sub -creds /var/run/nats/creds/sys/sys.creds '>'"
292
- echo " ${NC} "
292
+ echo -e " ${NC} "
293
293
else
294
- echo " ${CYAN} "
294
+ echo -e " ${CYAN} "
295
295
echo " nats-sub test &"
296
296
echo " nats-pub test 'Hello World'"
297
- echo " ${NC} "
297
+ echo -e " ${NC} "
298
298
fi
299
299
echo " The nats-box also includes nats-top which you can use to"
300
300
echo " inspect the flow of messages from one of the members"
301
301
echo " of the cluster (press 'q' to exit)."
302
302
echo
303
- echo " ${CYAN} nats-top${NC} "
303
+ echo -e " ${CYAN} nats-top${NC} "
304
304
echo
305
305
306
306
if [ $with_stan = true ]; then
307
307
echo " NATS Streaming with persistence is also available as part of your cluster."
308
308
echo " It is installed under the STAN account so you can use the following credentials:"
309
- echo " ${CYAN} "
309
+ echo -e " ${CYAN} "
310
310
echo " stan-pub test 'Hello World'"
311
311
echo " stan-sub test -all"
312
- echo " ${NC} "
312
+ echo -e " ${NC} "
313
313
fi
314
314
315
315
if [ $with_surveyor = true ]; then
316
316
echo " You can also connect to your monitoring dashboard:"
317
- echo " ${CYAN} "
317
+ echo -e " ${CYAN} "
318
318
echo " kubectl port-forward deployments/nats-surveyor-grafana 3000:3000"
319
- echo " ${NC} "
319
+ echo -e " ${NC} "
320
320
echo " Then open the following in your browser:"
321
- echo " ${CYAN} "
321
+ echo -e " ${CYAN} "
322
322
echo " http://127.0.0.1:3000/d/nats/nats-surveyor?refresh=5s&orgId=1"
323
- echo " ${NC} "
323
+ echo -e " ${NC} "
324
324
fi
325
325
}
326
326
0 commit comments