https://github.com/kubernetes/minikube
Resources: https://kubernetes.io/docs/tutorials/kubernetes-basics/cluster-intro/
Note: virtualBox cannot be installed on Ec2.
So i installed it on a physical hardware on linux and enabled started minikube...
But my Linux machine was running KVM already, so there was some conflicts, so I have enable minikube to run with KVM..
ip-172-31-14-214 - this refers to an AWS EC2 instance:
root@ip-172-31-14-214:~# git clone https://github.com/kubernetes/minikube.git
Cloning into 'minikube'...
remote: Counting objects: 41738, done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 41738 (delta 17), reused 30 (delta 3), pack-reused 41637
Receiving objects: 100% (41738/41738), 35.05 MiB | 18.53 MiB/s, done.
Resolving deltas: 100% (23528/23528), done.
Checking connectivity... done.
root@ip-172-31-14-214:~/minikube/pkg/minikube# curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 78.7M 100 78.7M 0 0 49.3M 0 0:00:01 0:00:01 --:--:-- 49.3M
root@ip-172-31-14-214:~/minikube/pkg/minikube# minikube version
minikube version: v0.20.0
root@ip-172-31-14-214:~/minikube/pkg/minikube#
---------------------------------------------------------------------------------------------------------------------------
root@ip-172-31-14-214:~/minikube/pkg/minikube# minikube start
========================================
kubectl could not be found on your path. kubectl is a requirement for using minikube
To install kubectl, please run the following:
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
To disable this message, run the following:
minikube config set WantKubectlDownloadMsg false
========================================
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
Downloading Minikube ISO
90.95 MB / 90.95 MB [==============================================] 100.00% 0s
E0707 02:01:32.049221 8488 start.go:127] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path.
Retrying.
E0707 02:01:32.049578 8488 start.go:133] Error starting host: Error creating host: Error executing step: Running precreate checks.
: VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path
================================================================================
An error has occurred. Would you like to opt in to sending anonymized crash
information to minikube to help prevent future errors?
To opt out of these messages, run the command:
minikube config set WantReportErrorPrompt false
================================================================================
Please enter your response [Y/n]:
y
root@ip-172-31-14-214:~/minikube/pkg/minikube#
root@ip-172-31-14-214:~/minikube/pkg/minikube#
root@ip-172-31-14-214:~/minikube/pkg/minikube#
root@ip-172-31-14-214:~/minikube/pkg/minikube# curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 67.4M 100 67.4M 0 0 53.7M 0 0:00:01 0:00:01 --:--:-- 53.8M
root@ip-172-31-14-214:~/minikube/pkg/minikube#
---------------------------------------------------------------------------------------------------------------------------
root@ip-172-31-14-214:~/minikube/pkg/minikube# minikube start
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
E0707 02:11:26.003862 18952 start.go:127] Error starting host: Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.
Retrying.
E0707 02:11:26.005007 18952 start.go:133] Error starting host: Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
root@ip-172-31-14-214:~/minikube/pkg/minikube# apt install virtualbox-ext-pack
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
virtualbox-ext-pack
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 11.8 kB of archives.
After this operation, 129 kB of additional disk space will be used.
Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 virtualbox-ext-pack all 5.0.40-0ubuntu1.16.04.1 [11.8 kB]
Fetched 11.8 kB in 0s (59.5 kB/s)
Preconfiguring packages ...
Selecting previously unselected package virtualbox-ext-pack.
(Reading database ... 82642 files and directories currently installed.)
Preparing to unpack .../virtualbox-ext-pack_5.0.40-0ubuntu1.16.04.1_all.deb ...
License has already been accepted.
Unpacking virtualbox-ext-pack (5.0.40-0ubuntu1.16.04.1) ...
Setting up virtualbox-ext-pack (5.0.40-0ubuntu1.16.04.1) ...
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.0.40/Oracle_VM_VirtualBox_Extension_Pack-5.0.40.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
License accepted.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
root@ip-172-31-14-214:~/minikube/pkg/minikube#
root@ip-172-31-14-214:~/minikube/pkg/minikube# minikube start
Starting local Kubernetes v1.6.4 cluster...
Starting VM...
E0707 02:11:26.003862 18952 start.go:127] Error starting host: Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.
Retrying.
E0707 02:11:26.005007 18952 start.go:133] Error starting host: Error creating host: Error executing step: Running precreate checks.
: This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
root@ip-172-31-14-214:~/minikube/pkg/minikube# apt install virtualbox-ext-pack
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
virtualbox-ext-pack
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
Need to get 11.8 kB of archives.
After this operation, 129 kB of additional disk space will be used.
Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 virtualbox-ext-pack all 5.0.40-0ubuntu1.16.04.1 [11.8 kB]
Fetched 11.8 kB in 0s (59.5 kB/s)
Preconfiguring packages ...
Selecting previously unselected package virtualbox-ext-pack.
(Reading database ... 82642 files and directories currently installed.)
Preparing to unpack .../virtualbox-ext-pack_5.0.40-0ubuntu1.16.04.1_all.deb ...
License has already been accepted.
Unpacking virtualbox-ext-pack (5.0.40-0ubuntu1.16.04.1) ...
Setting up virtualbox-ext-pack (5.0.40-0ubuntu1.16.04.1) ...
virtualbox-ext-pack: downloading: http://download.virtualbox.org/virtualbox/5.0.40/Oracle_VM_VirtualBox_Extension_Pack-5.0.40.vbox-extpack
The file will be downloaded into /usr/share/virtualbox-ext-pack
License accepted.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".
root@ip-172-31-14-214:~/minikube/pkg/minikube#
Please follow the above same steps to create in a local Linux machine, then start the minikube using the syntax given in next "post"
3 comments:
/usr/local/bin/minikube start --vm-driver=kvm
========================================
kubectl could not be found on your path. kubectl is a requirement for using minikube
To install kubectl, please run the following:
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
To disable this message, run the following:
minikube config set WantKubectlDownloadMsg false
========================================
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
WARNING: The kvm driver is now deprecated and support for it will be removed in a future release.
Please consider switching to the kvm2 driver, which is intended to replace the kvm driver.
See https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#kvm2-driver for more information.
To disable this message, run [minikube config set WantShowDriverDeprecationNotification false]
E0418 19:12:55.505801 16357 start.go:159] Error starting host: Error creating new host: Driver "kvm" not found. Do you have the plugin binary "docker-machine-driver-kvm" accessible in your PATH?.
Retrying.
E0418 19:12:55.506197 16357 start.go:165] Error starting host: Error creating new host: Driver "kvm" not found. Do you have the plugin binary "docker-machine-driver-kvm" accessible in your PATH?
Thanks for the information. It's very useful.
DevOps Online Training in Hyderabad
DevOps Training institute in Ameerpet
wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. Igained more knowledge from your blog. Keep Doing.. It is very useful.Thanks for sharing.
oracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore
Post a Comment