-->
  • Recent Articles

    How to Install Minikube in Ubuntu

     minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes.

    All you need is Docker (or similarly compatible) container or a Virtual Machine environment, and Kubernetes is a single command away: minikube start

    What you’ll need

    Minkube Installation

    Binary download

     curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
     sudo install minikube-linux-amd64 /usr/local/bin/minikube

    Debian package

    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
    sudo dpkg -i minikube_latest_amd64.deb

    Start your cluster

    From a terminal with administrator access (but not logged in as root), run:

    minikube start

    If you already have kubectl installed, you can now use it to access your shiny new cluster:

    kubectl get po -A
    

    How to Install kubectl on Linux

    Alternatively, minikube can download the appropriate version of kubectl, if you don’t mind the double-dashes in the command-line:

    minikube kubectl -- get po -A

    Deploy applications

    Create a sample deployment and expose it on port 8080:

    kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
    kubectl expose deployment hello-minikube --type=NodePort --port=8080
    

    It may take a moment, but your deployment will soon show up when you run:

    kubectl get services hello-minikube
    

    The easiest way to access this service is to let minikube launch a web browser for you:

    minikube service hello-minikube
    


    Alternatively, use kubectl to forward the port:

    kubectl port-forward service/hello-minikube 7080:8080
    

    Tada! Your application is now available at http://localhost:7080/

    Manage your cluster

    Pause Kubernetes without impacting deployed applications:

    minikube pause
    

    Halt the cluster:

    minikube stop

    Delete all of the minikube clusters:

    minikube delete --all

    No comments