Skip to content

Instantly share code, notes, and snippets.

@canthefason
Last active May 18, 2020 00:22
Show Gist options
  • Save canthefason/496f7a4ccefb64bb75ec623fdb2eb7f7 to your computer and use it in GitHub Desktop.
Save canthefason/496f7a4ccefb64bb75ec623fdb2eb7f7 to your computer and use it in GitHub Desktop.
istio-multicluster
$ kubectl create --context=$CTX_CLUSTER2 namespace bar
$ kubectl label --context=$CTX_CLUSTER2 namespace bar istio-injection=enabled
$ kubectl apply --context=$CTX_CLUSTER2 -n bar -f samples/httpbin/httpbin.yaml
$ kubectl create --context=$CTX_CLUSTER1 namespace foo
$ kubectl label --context=$CTX_CLUSTER1 namespace foo istio-injection=enabled
$ kubectl apply --context=$CTX_CLUSTER1 -n foo -f samples/sleep/sleep.yaml
$ export SLEEP_POD=$(kubectl get --context=$CTX_CLUSTER1 -n foo pod -l app=sleep -o jsonpath={.items..metadata.name})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment