Last active
May 29, 2019 15:21
-
-
Save poikilotherm/fee14676cd485d8f66f902a368f39793 to your computer and use it in GitHub Desktop.
Running Minikube with "none" VM driver - based on CentOS
This file contains 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
# Based on https://github.com/kubernetes/minikube/blob/master/docs/vmdriver-none.md | |
# See also: https://github.com/LiliC/travis-minikube/blob/master/.travis.yml | |
sudo yum update -y | |
sudo yum install -y epel-release | |
sudo yum install -y htop | |
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 install -y docker-ce docker-ce-cli containerd.io | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
curl -Lo minikube \ | |
https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \ | |
&& sudo install minikube /usr/local/bin/ \ | |
&& rm minikube | |
kv=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) | |
curl -Lo kubectl \ | |
https://storage.googleapis.com/kubernetes-release/release/$kv/bin/linux/amd64/kubectl \ | |
&& sudo install kubectl /usr/local/bin/ \ | |
&& rm kubectl | |
export MINIKUBE_WANTUPDATENOTIFICATION=false | |
export MINIKUBE_WANTREPORTERRORPROMPT=false | |
export MINIKUBE_HOME=$HOME | |
export CHANGE_MINIKUBE_NONE_USER=true | |
export KUBECONFIG=$HOME/.kube/config | |
mkdir -p $HOME/.kube $HOME/.minikube/config | |
sudo ln -s $HOME/.minikube /root/.minikube | |
touch $KUBECONFIG | |
cat << EOF | tee ${HOME}/.minikube/config/config.json | |
{ | |
"cpus": 2, | |
"heapster": true, | |
"memory": 4096, | |
"vm-driver": "none" | |
} | |
EOF | |
sudo -E minikube start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment