Kubernetes - Minikube
Minikube is a tool that makes it easy to run Kubernetes locally. Minikube runs a single-node Kubernetes cluster.
Installation of Minikube on Ubuntu
1curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube
2sudo cp minikube /usr/local/bin && rm minikube
Cheat sheet
1minikube version #Get minikube version
2
3minikube start # Start Minikube Service
4minikube start --cpus 4 --memory 8192 # Start Minikube Service with 4 cpus and 8192 of memory
5minikube stop # Stop Mikikube Service
6minikube delete # Clean the configurations and start clean (maybe also you need rm -rf ./minikube)
7minikube get-k8s-versions # List of Kubernetes versions Minikube currently supports
8minikube start --kubernetes-version v1.7.5 # Start with a specific version of k8s
9
10minikube ssh # SSH to minikube vm
11minikube update-check # Minikube check latest version
12
13minikube dashboard # Open the Dashboard
14minikube dashboard --url # Get the Dashboard URL
15minikube ip # View ip of Cluster
16minikube logs # Get minikube log
17
18minikube addons list # List addons
19minikube addons enable heapster # Install addon after creating minikube env
20minikube addons disable heapster # Disable addon
21minikube mount /host-mount-path:/vm-mount-path # Mount host OS’s folder to minikube VM
22
23minikube service --url SERVICE # Get the URL of service
24minikube status # View the status of minikube, cluster and kubectl (Something ips change)
25minikube update-context # Fix ips change, kubectl misconfigured