Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.09 KB

29-Practise-Test-instal-using-kubeadm.md

File metadata and controls

59 lines (41 loc) · 1.09 KB

Solution Install Using Kubeadm

  1. Check the solution

    sudo apt-get update && sudo apt-get install -y apt-transport-https curl
    curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
    cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
    deb https://apt.kubernetes.io/ kubernetes-xenial main
    EOF
    sudo apt-get update
    sudo apt-get install -y kubelet kubeadm kubectl
    sudo apt-mark hold kubelet kubeadm kubectl
    
  2. Check the solution

    kubelet --version
    
  3. Check the solution

    0
    
  4. Click on OK

  5. Check the solution

    kubeadm init
    
  6. Click on OK

  7. Click on Check

  8. Check the solution

    kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"