Minikube: addons

From OnnoWiki
Jump to navigation Jump to search

Sumber: https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/


Create a Minikube cluster

minikube start

Enable the Ingress controller

minikube addons enable ingress
kubectl get pods -n kube-system

Deploy a hello, world app

kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0
kubectl expose deployment web --type=NodePort --port=8080
kubectl get service web
minikube service web --url

Akses Web sesuai URL yang diberikan, misalnya

http://192.168.99.100:30545
Hello, world!
Version: 1.0.0
Hostname: web-79d88c97d6-sf4q2





Referensi