Low Orbit Flux Logo 2 D

Kubernetes - Minikube

This will show you how to setup and use Minikube. To really do much with it you will want to check out our Kubernetes Tasks with Kubectl document.

Make sure your user is added to the docker group:

sudo usermod -aG docker $USER

Make sure to logout and log back in for the above to take affect.

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube version
minikube start           # start cluster
kubectl get po -A           # ????
minikube kubectl -- get po -A 
alias kubectl="minikube kubectl --"
minikube dashboard          # start dashboard, only on localhost

Expose API Server on public IP:

kubectl proxy --address='' --disable-filter=true    

API Server:

Create application and deploy:

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


kubectl get services hello-minikube
minikube service hello-minikube        ## launch browser????is it working????? ( no body )
kubectl port-forward service/hello-minikube 7080:8080   ## forward the port

http://localhost:7080/ ## ???? working? try on desktop??

kubectl create deployment balanced --image=k8s.gcr.io/echoserver:1.4  
kubectl expose deployment balanced --type=LoadBalancer --port=8080
minikube tunnel    # start tunnel to create routable IP
kubectl get services balanced   # find the routable IP     -     working???? 

Create another cluster with older version of Kubernetes.

minikube start -p aged --kubernetes-version=v1.16.1

minikube start  
minikube stop  
minikube pause  
minikube unpause  
minikube dashboard  
minikube dashboard –url just the URL doesn’t try to lauch a browser
minikube config set memory 16384 increase memory
minikube addons list  
minikube delete –all delete all clusters
minikube service hello-node open in a browser, is it working????? ( no body )
minikube addons enable metrics-server  
minikube addons disable metrics-server  
minikube stop  
minikube delete  
minikube ip