Difference between revisions of "Minikube: start"

From OnnoWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
==Spesifikasi Minimal==
 
==Spesifikasi Minimal==
  
* 2 CPUs or more
+
* CPU 2 core atau lebih
* 2GB of free memory
+
* RAM 2GB free
* 20GB of free disk space
+
* Harddisk 20GB free
* Internet connection
+
* Sambungan Internet
* Container or virtual machine manager, such as: Docker, QEMU, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, or VMware Fusion/Workstation
+
* Container atau virtual machine manager, seperti: Docker, QEMU, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, atau VMware Fusion/Workstation
 
 
  
 
==Start minikube==
 
==Start minikube==

Revision as of 12:39, 2 May 2023

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


Spesifikasi Minimal

  • CPU 2 core atau lebih
  • RAM 2GB free
  • Harddisk 20GB free
  • Sambungan Internet
  • Container atau virtual machine manager, seperti: Docker, QEMU, Hyperkit, Hyper-V, KVM, Parallels, Podman, VirtualBox, atau VMware Fusion/Workstation

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/


Deploy Loadbalancer

kubectl create deployment balanced --image=k8s.gcr.io/echoserver:1.4  
kubectl expose deployment balanced --type=LoadBalancer --port=8000
minikube tunnel
kubectl get services balanced

Bisa di akses dari <EXTERNAL-IP>:8000



Management Minicube

minikube pause
minikube stop
minikube config set memory 16384
minikube addons list
minikube start -p aged --kubernetes-version=v1.16.1
minikube delete --all


Referensi


Pranala Menarik