Skip to content

Instantly share code, notes, and snippets.

@CaptTofu
Created August 15, 2017 12:29
Show Gist options
  • Save CaptTofu/eb0b4ef30dae45de1eee681af721d295 to your computer and use it in GitHub Desktop.
Save CaptTofu/eb0b4ef30dae45de1eee681af721d295 to your computer and use it in GitHub Desktop.
patg@ubuntu:~$ kubectl get nodes
NAME STATUS AGE VERSION
ubuntu NotReady 31m v1.7.3
patg@ubuntu:~$ export kubever=$(kubectl version | base64 | tr -d '\n')
patg@ubuntu:~$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"
serviceaccount "weave-net" created
clusterrole "weave-net" created
clusterrolebinding "weave-net" created
daemonset "weave-net" created
patg@ubuntu:~$ kubectl get nodes
NAME STATUS AGE VERSION
ubuntu NotReady 37m v1.7.3
patg@ubuntu:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment