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 cd29a4d commit 588a4fc
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions code-samples/11-kubernetes/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,48 +5,35 @@ set -e
echo "Installing kubectl..." # https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin/kubectl

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

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

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

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube

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..."
Expand Down

0 comments on commit 588a4fc

Please sign in to comment.