Last active
June 2, 2019 12:55
-
-
Save sbuvaneshkumar/2b60b69d8045d0e203abf3fd17c896a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils libvirt-daemon-kvm qemu-kvm | |
usermod -a -G libvirt $(whoami) | |
newgrp libvirt | |
systemctl enable --now libvirtd | |
cat <<EOF > /etc/yum.repos.d/kubernetes.repo | |
[kubernetes] | |
name=Kubernetes | |
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 | |
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 | |
yum install -y kubectl | |
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v1.1.0/minikube-linux-amd64 && chmod +x minikube && sudo cp minikube /usr/local/bin/ && rm minikube | |
curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2 \ | |
&& sudo install docker-machine-driver-kvm2 /usr/local/bin/ | |
# minikube start --vm-driver kvm | |
# ^ kvm2/kvm/hyperv/virtualbox | |
# Issues | |
# 1. apiserver not started | |
# rm -rf /var/lib/minikube/certs/ | |
# rm -rf /etc/kubernetes | |
# ^ do this inside the minikube |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment