How do i install kubectl on ubuntu?



  • kubectl is the client software that interacts with kubernetes clusters

    Update the software repository and install the aptitude package apt-transport-https

    # apt-get update && apt-get install -y apt-transport-https
    

    Add the gpg key for google package repo.

    # curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
    

    Add the entry for kubernetes repo

    # cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
    deb http://apt.kubernetes.io/ kubernetes-xenial main
    EOF
    **Update the software repository with the changes.**
    ```bash
    # apt-get update
    

    Install the software.

    # apt-get install -y kubectl
    

Log in to reply
 

© Lightnetics 2024