Expose Minikube

0 min read


Hello Stacker, this is source code to deploy minikube to your Linux VM.

sudo groupadd docker
sudo usermod -aG docker $USER
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
chmod +x minikube
mv ./minikube /usr/local/bin/minikube
minikube start --driver=docker
docker ps
minikube dashboard
kubectl proxy --address='0.0.0.0' --disable-filter=true --port=8080
eval $(minikube docker-env)
kubectl get pods
docker login dotamonster.azurecr.io
docker pull dotamonster.azurecr.io/gatsby_manifest:d35215aef8428371f3aff055691de0bcffc8a28a
kubectl create deployment dota-monster --image=dotamonster.azurecr.io/gatsby_manifest:d35215aef8428371f3aff055691de0bcffc8a28a
kubectl expose deployment dota-monster --type=LoadBalancer --port=80
kubectl get svc
minikube tunnel
kubectl get service

and then open your services cluster on browser by using proxy like this :

http://dota.monster:8080/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/#/pod/default/dota-monster-6dcc75cbf-4jfsh?namespace=default

Working well, so this is only for development purpose and for production we will do on the next post … cyaaa..

Bima Sena

Leave a Reply

Your email address will not be published. Required fields are marked *