Skip to content

Instantly share code, notes, and snippets.

@sguzman
Created November 4, 2018 20:31
Show Gist options
  • Save sguzman/bd9898247131cdf502cb0c26dfeae694 to your computer and use it in GitHub Desktop.
Save sguzman/bd9898247131cdf502cb0c26dfeae694 to your computer and use it in GitHub Desktop.
Script to run on kubernetes worker node to get to join
#!/bin/sh
apt-get update \
&& apt-get install -qy docker.io
apt-get update && apt-get install -y apt-transport-https \
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
apt-get update \
&& apt-get install -y kubelet kubeadm kubernetes-cni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment