Pustaka Taratsa

Baca teks (EPUB): Minikube: addons

1 bagian

Teks ini diambil langsung dari berkas EPUB; tata letak dan gambar tidak disertakan. Untuk tampilan lengkap, silakan merujuk pada dokumen asli.

Daftar isi
  1. Minikube: addons
  2. Create a Minikube cluster
  3. Enable the Ingress controller
  4. Deploy a hello, world app
  5. Referensi

Minikube: addons

Sumber: https://onnocenter.or.id/wiki/index.php/Minikube:_addons

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