Skip to content

Commit

Permalink
Updating install script.
Browse files Browse the repository at this point in the history
  • Loading branch information
algogrit committed Jul 12, 2019
1 parent 56fcbca commit cd29a4d
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions code-samples/11-kubernetes/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,26 @@ sudo mv ./kubectl /usr/local/bin/kubectl

sudo ln -s /usr/local/bin/kubectl /usr/bin/kubectl

echo "Installing kvm..."
echo "Installing docker-machine..." # https://computingforgeeks.com/installing-docker-ce-ubuntu-debian-fedora-arch-centos/

sudo yum install kvm
sudo yum remove docker docker-common docker-selinux docker-engine

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

sudo yum -y install docker-ce docker-ce-cli containerd.io

sudo systemctl start docker && sudo systemctl enable docker


echo "Installing kvm..." # https://computingforgeeks.com/how-to-run-minikube-on-kvm/

sudo yum -y install epel-release
sudo yum -y install libvirt qemu-kvm virt-install virt-top libguestfs-tools bridge-utils

sudo systemctl start libvirtd
sudo systemctl enable libvirtd

echo "Installing minikube..." # https://kubernetes.io/docs/tasks/tools/install-minikube/#install-minikube-via-direct-download

Expand All @@ -24,6 +41,14 @@ sudo install minikube /usr/local/bin

rm minikube

echo "Installing docker-machine-driver-kvm2..."

curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-kvm2

chmod +x docker-machine-driver-kvm2

sudo mv docker-machine-driver-kvm2 /usr/local/bin/

echo "Installation done! Please verfiy by running..."
echo "kubectl version"
echo "minikube version"

0 comments on commit cd29a4d

Please sign in to comment.