Minikube: start

From OnnoWiki
Jump to navigation Jump to search

Sumber: https://minikube.sigs.k8s.io/docs/start/


Start minikube

minikube start


Interaksi dengan Cluster minikube

kubectl get po -A
minikube kubectl -- get po -A

Untuk melihat dashboard

minikube dashboard

Akan membuka akses web di

http://127.0.0.1:46779/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/


Deploy Application

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

atau di arahkan ke browser

minikube service hello-minikube

atau lakukan port fowarding


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


supaya bisa di akses di http://localhost:7080/

Referensi


Pranala Menarik