-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
executable file
·40 lines (26 loc) · 849 Bytes
/
setup.sh
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
#!/bin/bash
#Installing microk8s
sudo apt update
sudo apt install snapd
sudo snap install microk8s --classic
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
#Starting microk8s
sudo microk8s.start
#First step: enable addons
sudo microk8s.enable dns dashboard ingress storage metallb
sudo microk8s status --wait-ready
#Second step: configure ingress for mqtt traffic
sudo microk8s.stop
sudo ./extra/snpmk8/edit-ingress.sh
#Fourth step: change some file paths needed
python3 extra/setup/step4.py
microk8s.start
sudo microk8s status --wait-ready
sudo apt-get install gettext-base
#cd kubernetesFiles
#sudo ./set-vars.sh
#sudo ./execute_yaml.sh
#Token to access the dashboard
#token=$(microk8s kubectl -n kube-system get secret | grep default-token | cut -d " " -f1)
#microk8s kubectl -n kube-system describe secret $token