Play with minikube

minikube quickly setup a local Kubernetes cluster on our personal computer. So you can try out Kubernetes very easily.

1. Install minikube

You need docker or a virtual machine environment.

requirements

  • 2GB of free memory
  • 20GB of free disk space
  • docker or virtual machine manager(VirtualBox, VMWare)

a. First download the latest minikube

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb

b. Install with dpkg

sudo dpkg -i minikube_latest_amd64.deb

c. Check the minikube version

minikube version

2. Install kubectl

The kubectl is command line tool for controlling Kubernetes cluster.

a. Download the kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl

b. Check the version

kubectl version -o json

3. Play with minikube

a. Start minikube

minikube start

first time it is downloading minikube docker from the gcr.

b. Stop minikube

minikube stop

c. Status of minikube

minikube status

d. List of installed Minikube addons

minikube has a built-in list of applications and services that may be easily deployed, such as Istio or Ingress.

minikube addons list

To enable an add-on, see:

minikube addons enable <name>

To disable an addon:

minikube addons disable <name>

e. Dashboard

minikube dashboard

4. References

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

https://kubernetes.io/docs/tutorials/hello-minikube/