FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
secureCodeBox/bin/install-minikube.sh at hash-finding · avicoder/secureCodeBox · GitHub
avicoder
/
secureCodeBox
Public
forked from
secureCodeBox/secureCodeBox
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
secureCodeBox
/
bin
/
install-minikube.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
83 lines (67 loc) · 2.03 KB
Breadcrumbs
secureCodeBox
/
bin
/
install-minikube.sh
Copy path
File metadata and controls
executable file
·
83 lines (67 loc) · 2.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!
/usr/bin/env bash
#
#
Install the Minikube setup in the all-in-one Vagrant box.
#
#
IMPORTANT: This script must be executed as root.
#
set
-eu
export
DEBIAN_FRONTEND=
"
noninteractive
"
MINIKUBE_DEB_FILE=
"
minikube_latest_amd64.deb
"
MINIKUBE_DEB_PATH=
"
${HOME}
/
${MINIKUBE_DEB_FILE}
"
cleanup
() {
rm -rfv
"
${MINIKUBE_DEB_PATH}
"
}
#
Cleanup stuff on normal exit and interuption.
trap
cleanup EXIT
trap
cleanup INT
update_system
() {
apt-get update
apt-get upgrade -y
apt-get install -y \
apt-transport-https \
ca-certificates \
gnupg2 \
curl \
software-properties-common
}
#
Install Docker as minikube provider (https://docs.docker.com/engine/install/debian/)
add_docker_apt_source
() {
add_apt_key
"
https://download.docker.com/linux/debian/gpg
"
add_apt_source
"
deb [arch=amd64] https://download.docker.com/linux/debian
$(
lsb_release -cs
)
stable
"
"
docker
"
}
#
Install kubectl (https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-using-native-package-management)
add_kubectl_apt_source
() {
add_apt_key
"
https://packages.cloud.google.com/apt/doc/apt-key.gpg
"
add_apt_source
"
deb https://apt.kubernetes.io/ kubernetes-xenial main
"
"
kubernetes
"
}
#
https://helm.sh/docs/intro/install/
add_helm_apt_source
() {
add_apt_key
"
https://baltocdn.com/helm/signing.asc
"
add_apt_source
"
deb https://baltocdn.com/helm/stable/debian/ all main
"
"
helm
"
}
add_apt_key
() {
local
url=
"
${1}
"
curl -fsSL
"
${url}
"
|
apt-key add -
}
add_apt_source
() {
local
src=
"
${1}
"
local
destination=
"
${2}
"
echo
"
${src}
"
>
"
/etc/apt/sources.list.d/
${destination}
.list
"
}
#
Install minikube (https://minikube.sigs.k8s.io/docs/start/)
donwload_and_install_minikube
() {
curl -sSLo
"
${MINIKUBE_DEB_PATH}
"
"
https://storage.googleapis.com/minikube/releases/latest/
${MINIKUBE_DEB_FILE}
"
dpkg -i
"
${MINIKUBE_DEB_PATH}
"
}
update_system
add_docker_apt_source
add_kubectl_apt_source
add_helm_apt_source
apt-get -y update
apt-get install -y \
docker-ce \
kubectl \
helm
donwload_and_install_minikube
systemctl start docker
usermod -a -G docker vagrant
Back
|
FazBrowse Home
|
New Git URL