Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
sudo su
apt-get update


#install openssh
apt-get install openssh-server


#install docker
apt-get install -y docker.io


#install curl
apt-get install -y apt-transport-https curl

#setup kubernetes repo
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update

#install kubernetes
apt-get install -y kubelet kubeadm kubectlapt-mark hold kubelet kubeadm kubectl

#disable swap
swapoff -va
#comment out the line for swap in the fstab file
vi /etc/fstab 

#pull images
kubeadm config images pull



#if vm, save for duplication


#setup network settings
#hostname, ip , etc...


#initialize kubernetes
kubeadm init

...