kube.sh start # starts the minikube environment might prompt you for sudo password You can overwrite this by editing the script and adding your own settings in the user editable section The wrapper will auto detect CPU cores and memory and use half of your systems resources.The wrapper has options to start/stop/delete the minikube environment.
#Launch docker hyperkit with more cpu coures install
The wrapper will install minikube and kubectl if its not installed.I created a wrapper script to automate minikube so that once the startup is done your k8s environment is ready to go with a LoadBalancer with a pool of IP and a default storageClass for storage. hyperkit comes installed on macOS so nothing else is needed. The wrapper will not install docker in linux, however it is very easy to install docker. If you are interested in installing vanilla k8s on bare-metal you can look on my old post.įor this article I will be using docker driver for linux and hyperkit for macOS, for some of you, you might have virtualbox already installed and you can use that as your driver or any of the other drivers that minikube supports. You can run it from a Linux server without a GUI but you would need to ssh tunnel to get to the external IP's assigned to various services. LOCALLY is in CAPS above to show that the minikube environment is only accessible from the host that runs minikube and will not be accessible via the LAN, so it's best to run it from a workstation such as macOS or a Linux workstation capable of running GUI for a browser. I needed a way to create an environment fast and make it re-producible for testing purposes. Previously whenever I needed to test anything in the kubernetes environment I would stand up a full suite of servers 4 actually, 3 workers and 1 master node on a VM and it was very time-consuming to set up and use and also resource-intensive for my tiny home lab. When you run minikube it will launch a minikube host as a container/VM depending on the driver and runs a single-node k8s cluster. Minikube was developed to allow users to run Kubernetes LOCALLY.