You are on page 1of 1

// Only on the Master

// Update the repositories


$ sudo su
# apt update

// Turn off Swap Space


# swapoff -a
# nano /etc/fstab

// Update the Hostname


# nano /etc/hostname

// Note the IP address


# ifconfig

// Update teh host file


# nano /etc/hosts

// Set a static IP address


# nano /etc/network/interfaces

// Add the below at the end of the file


auto enp0s8
iface enp0s8 inet static
address <IP-Address-of-VM>

// Install OpenSSH Server


# sudo apt install openssh-server

// Install Docker
# sudo su
# apt update
# apt install -y docker.io

// Run the following commands before installing the Kube environment


# apt update && apt install -y apt-transport-https curl
# 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 http://apt.kubernetes.io/ kubernetes-xenial main
> EOF
# apt update

// Install Kubeadm, Kubelet & Kubectl


# apt install -y kubelet kubeadm kubectl

// Update the Kubernetes configuration


# nano /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

// Add the below after the last line


Environment="cgroup-driver=systemd/cgroup-driver=cgroupfs"

You might also like