Installing Minikube on Linux:
we will learn how to install Minikube on Linux (Ubuntu 16.04):
Install the hypervisor (VirtualBox), if you haven't done so already
$ sudo apt-get install virtualbox
Install Minikube
We can download the latest release from the Minikube release page. Once downloaded, we need to make it executable and copy it in the PATH:
$ curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v0.33.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Start Minikube:
We can start Minikube with the minikube start command:
$ minikube startWe can start Minikube with the minikube start command:
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
Downloading Minikube ISO
142.22 MB / 142.22 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
Downloading localkube binary
162.41 MB / 162.41 MB [============================================] 100.00% 0s
0 B / 65 B [----------------------------------------------------------] 0.00%
65 B / 65 B [======================================================] 100.00% 0s
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Check the status
With the minikube status command, we can see the status of Minikube:
$ minikube statusWith the minikube status command, we can see the status of Minikube:
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.129.109
Stop Minikube
We can stop Minikube using the minikube stop command.
$ minikube stop
Stopping local Kubernetes cluster...We can stop Minikube using the minikube stop command.
$ minikube stop
Machine stopped.
Installing Minikube on macOS
On macOS, Minikube uses VirtualBox as the default hypervisor, which we will use as well. But, we can also use the xhyve hypervisor, or the hyperkit driver, as well. We can pass the -vm-driver=<driver> option while starting the Minikube to use the specific driver.
Next, we will learn how to install Minikube on macOS:
Install VirtualBox on macOS
Install Minikube
We can download the latest release from the Minikube release page. Once downloaded, we need to make it executable and copy it in the PATH.
$ curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v0.33.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
Start Minikube
We can start Minikube with the minikube start command:
$minikube start
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
Downloading Minikube ISO
142.22 MB / 142.22 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
Downloading localkube binary
162.41 MB / 162.41 MB [============================================] 100.00% 0s
0 B / 65 B [----------------------------------------------------------] 0.00%
65 B / 65 B [======================================================] 100.00% 0s
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
Check the status
We can see the status of Minikube with the minikube status command:
$ minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.129.110
Stop Minikube
We can stop Minikube using the minikube stop command.
$ minikube stop
Stopping local Kubernetes cluster...
Machine stopped.
Installing Minikube on Windows
We will be using VirtualBox as the hypervisor to create the Minikube VM. Make sure Hyper-V is disabled while running VirtualBox.
Please note that Windows support is currently in the experimental phase, and you might encounter issues during installation.
Following are the instructions to install Minikube on Windows 10:
Install the latest version of VirtualBox
Go to the Minikube release page
Download the Minikube binary from the Distribution section
Add the downloaded Minikube binary to your PATH
Set the default VM driver for Minikube
Open the Powershell using the Run as Administrator option, and execute the following command:
> PS C:\Windows\system32> minikube config set vm-driver virtualbox
These changes will take effect upon a minikube delete and then a minikube start
Start Minikube
We can start Minikube using the minikube start command. Open the Powershell using the Run as Administrator option and execute the following command:
>PS C:\WINDOWS\system32> minikube start
Starting local Kubernetes v1.9.0 cluster...
Starting VM...
Getting VM IP address
Moving files into cluster...
Downloading localkube binary 162.41 MB / 162.41 MB [============================================] 100.00% 0s
0 B / 65 B [----------------------------------------------------------] 0.00%
65 B / 65 B [======================================================] 100.00% 0s
Setting up certs...Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.
Check the status
We can see the status of Minikube using the minikube status command. Open the Powershell using the Run as Administrator option and execute the following command:
> PS C:\WINDOWS\system32> minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.129.100
Stop Minikube
We can stop Minikube using the minikube stop command. Open the Powershell using the Run as Administrator option and execute the following command:
> PS C:\WINDOWS\system32> minikube stop
Stopping local Kubernetes cluster
Machine stopped.
ReplyDeletewell! Thanks for providing a good stuff
Docker Training
Docker Online Training
Kubernetes Online Training
Docker and Kubernetes Training
Your blog is in a convincing manner, thanks for sharing such an information with lots of your effort and time
ReplyDeleteKubernetes online training
Kubernetes online course
kartal daikin klima servisi
ReplyDeleteataşehir toshiba klima servisi
üsküdar lg klima servisi
beykoz alarko carrier klima servisi
kartal samsung klima servisi
ümraniye samsung klima servisi
kartal mitsubishi klima servisi
ümraniye mitsubishi klima servisi
beykoz arçelik klima servisi