Skip to content

Instantly share code, notes, and snippets.

@arsham
Created January 16, 2019 16:09
Show Gist options
  • Save arsham/5e5e9f1b005548b68a56cbd323b0b679 to your computer and use it in GitHub Desktop.
Save arsham/5e5e9f1b005548b68a56cbd323b0b679 to your computer and use it in GitHub Desktop.
Install #weave #scope in #kubernetes

Install

kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')&env.IPALLOC_RANGE=10.4.0.0/16"
kubectl apply -f "https://cloud.weave.works/k8s/scope.yaml?k8s-service-type=NodePort&k8s-version=$(kubectl version | base64 | tr -d '\n')"

Access

kubectl port-forward -n weave "$(kubectl get -n weave pod --selector=weave-scope-component=app -o jsonpath='{.items..metadata.name}')" 4040

Now browse to http://localhost:4040

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment