From ae7107ba844973564cbb946107f8fc44f1b23445 Mon Sep 17 00:00:00 2001 From: Vishal Lal Date: Wed, 26 Apr 2017 09:20:07 +0200 Subject: [PATCH] Fix documentation --- deployment/docker-swarm.md | 14 ++++---------- deployment/kubernetes.md | 10 ++++++---- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/deployment/docker-swarm.md b/deployment/docker-swarm.md index 28cd76b..c3d05a7 100644 --- a/deployment/docker-swarm.md +++ b/deployment/docker-swarm.md @@ -136,17 +136,11 @@ Using any IP from the command: `terraform output` @@ -107,7 +109,7 @@ There are two options for running Weave Scope, either you can run the UI locally master_ip=$(terraform output -json | jq -r '.master_address.value') - ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip kubectl apply -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml' + ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip KUBECONFIG=\$HOME/admin.conf kubectl apply -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml' @@ -139,7 +141,7 @@ You may optionally choose to configure Weave Flux which allows automatic deploym master_ip=$(terraform output -json | jq -r '.master_address.value') - ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip kubectl apply -f /tmp/manifests/sock-shop-ns.yaml -f /tmp/manifests/zipkin-ns.yaml -f /tmp/manifests + ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip KUBECONFIG=\$HOME/admin.conf kubectl apply -f /tmp/manifests/sock-shop-ns.yaml -f /tmp/manifests/zipkin-ns.yaml -f /tmp/manifests @@ -194,7 +196,7 @@ This will send some traffic to the application, which will form the connection g docker run --rm weaveworksdemos/load-test -d 300 -h $elb_url -c 2 -r 100 master_ip=$(terraform output -json | jq -r '.master_address.value') - ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip "kubectl run -i -t -\-namespace=sock-shop healthcheck -\-restart=Never -\-image=weaveworksdemos/healthcheck:snapshot -- -s orders,carts,payment,user,catalogue,shipping,queue-master -d 60 -r 5" + ssh -i ~/.ssh/deploy-docs-k8s.pem ubuntu@$master_ip "KUBECONFIG=\$HOME/admin.conf kubectl run -i -t -\-namespace=sock-shop healthcheck -\-restart=Never -\-image=weaveworksdemos/healthcheck:snapshot -- -s orders,carts,payment,user,catalogue,shipping,queue-master -d 60 -r 5" set +e