-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMinikube Installation Script
50 lines (27 loc) · 1.26 KB
/
Minikube Installation Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
sudo apt-get update -y
sudo apt-get install curl wget apt-transport-https virtualbox virtualbox-ext-pack -y
echo "First install docker"
sudo apt update && apt -y install docker.io
echo "Start and Enable Docker and change permission"
sudo systemctl start docker
sudo systemctl enable docker
sudo chmod 666 /var/run/docker.sock
sudo apt update -y
sudo apt upgrade -y
wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo cp minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube
minikube version
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 version -o yaml
minikube start
minikube status
=======================================================================================================================================================================
:: NOTE ::
IF YOU ARE RUNNING MINIKUBE AS NORMAL USER DO THIS BELLOW
1. After run this ABOVE script without root:: minikube start
2. Then run this:: sudo usermod -aG docker webserver && newgrp docker
3. Then run again without root user:: minikube start