node3_worker

fahussain@node-3:~$ history
    1  cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf 
    2  overlay 
    3  br_netfilter 
    4  EOF
    5  sudo modprobe overlay 
    6  sudo modprobe br_netfilter
    7  cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf net.bridge.bridge-nf-call-iptables = 1 
    8  net.ipv4.ip_forward = 1 
    9  net.bridge.bridge-nf-call-ip6tables = 1 
   10  EOF
   11  sudo sysctl --system
   12  sudo apt-get update && sudo apt-get install -y containerd
   13  sudo mkdir -p /etc/containerd
   14  sudo containerd config default | sudo tee /etc/containerd/config.toml
   15  sudo systemctl restart containerd
   16  sudo swapoff -a
   17  sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
   18  sudo apt-get update && sudo apt-get install -y apt-transport-https curl
   19  curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
   20  cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
   21  deb https://apt.kubernetes.io/ kubernetes-xenial main
   22  EOF
   23  sudo apt-get update
   24  sudo apt-get install -y kubelet=1.20.1-00 kubeadm=1.20.1-00 kubectl=1.20.1-00
   25  sudo apt-mark hold kubelet kubeadm kubectl
   26  kubeadm join 10.128.0.2:6443 --token r4h5vr.ynrp5ks3x0r6xi97     --discovery-token-ca-cert-hash sha256:e58fbf011780570e58d486d35fc3511f9ca58a01636cc002571ec10b81e2e065
   27  sudo kubeadm join 10.128.0.2:6443 --token r4h5vr.ynrp5ks3x0r6xi97     --discovery-token-ca-cert-hash sha256:e58fbf011780570e58d486d35fc3511f9ca58a01636cc002571ec10b81e2e065
   28  sudo apt-mark unhold kubeadm && sudo apt-get update && sudo apt-get install -y kubeadm=1.21.0-00 && sudo apt-mark hold kubeadm
   29  sudo kubeadm upgrade node
   30  sudo apt-mark unhold kubelet kubectl && sudo apt-get update && sudo apt-get install -y kubelet=1.21.0-00 kubectl=1.21.0-00 && sudo apt-mark hold kubelet kubectl
   31  sudo systemctl daemon-reload
   32  sudo systemctl restart kubelet
   33  history