From 42b36ee37c1c150a7efd4d07a1fcfd0c97e79c9d Mon Sep 17 00:00:00 2001 From: Waldemar Quevedo Date: Tue, 24 Nov 2020 08:12:01 -0800 Subject: [PATCH] Add missing ctx param --- nats-on-kubernetes/super-cluster-on-digital-ocean.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nats-on-kubernetes/super-cluster-on-digital-ocean.md b/nats-on-kubernetes/super-cluster-on-digital-ocean.md index 08d0457..8963823 100644 --- a/nats-on-kubernetes/super-cluster-on-digital-ocean.md +++ b/nats-on-kubernetes/super-cluster-on-digital-ocean.md @@ -23,7 +23,7 @@ For this setup, we will create a super cluster using the external IPs from the n ```bash for ctx in do-ams3-nats-k8s-ams3 do-nyc1-nats-k8s-nyc1 do-sfo2-nats-k8s-sfo2; do echo "name: $ctx" - for externalIP in `kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'`; do + for externalIP in `kubectl --context $ctx get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="ExternalIP")].address}'`; do echo "- nats://$externalIP:7522"; done echo