In this tutorial, How to install Minikube kubernetes to configure a single Node Cluster within a VM. How do I Configure Kubernetes which is a Docker Container system?
A Hypervisor supported by Minikube. In this example, Install KVM Hypervisor. You can use other Hypervisors such as VirtualBox, VMware Fusion v.v.
Table of Contents
Install Minikube kubernetes
KVM Hypervisor installing
[root@DevopsRoles ~]# yum -y install qemu-kvm libvirt libvirt-python libguestfs-tools virt-install libvirt-daemon-kvm
[root@DevopsRoles ~]# systemctl start libvirtd
[root@DevopsRoles ~]# systemctl enable libvirtd
Add repository for configure Kubernetes and Install Minikube
Configure Kubernetes repository
[root@DevopsRoles ~]# cat <<'EOF' > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
Install Minikube
[root@DevopsRoles ~]# yum -y install kubectl
[root@DevopsRoles ~]# wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 -O minikube
[root@DevopsRoles ~]# wget https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2
[root@DevopsRoles ~]# chmod 755 minikube docker-machine-driver-kvm2
[root@DevopsRoles ~]# mv minikube docker-machine-driver-kvm2 /usr/local/bin/
Check version minikube
[root@DevopsRoles ~]# /usr/local/bin/minikube version
[root@DevopsRoles ~]# kubectl version -o json
Start Minikube
[root@DevopsRoles ~]# minikube start --vm-driver kvm2
Minikube the command line
#show status
[root@DevopsRoles ~]# minikube status
[root@DevopsRoles ~]# minikube service list
[root@DevopsRoles ~]# minikube docker-env
[root@DevopsRoles ~]# kubectl cluster-info
[root@DevopsRoles ~]# kubectl get nodes
[root@DevopsRoles ~]# virsh list
[root@DevopsRoles ~]# minikube ssh # possible to access with SSH to the VM
[root@DevopsRoles ~]# minikube stop # to stop minikube, do like follows
[root@DevopsRoles ~]# minikube delete # to remove minikube, do like follows
[root@DevopsRoles ~]# virsh list --all
Conclusion
Thought the article, How to install “Minikube Kubernetes on Centos” as above. I hope will this your helpful. Thank you for reading the DevopsRoles page!