Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.3 KB

05-Practice-Test-Deploy-Kubernetes-Cluster-using-Kubeadm.md

File metadata and controls

68 lines (43 loc) · 1.3 KB

Practice Test - Install kubernetes cluster using kubeadm tool

Solutions for practice test - 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')"