Skip to content

shridharMe/IOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To start the application

Vagrant up

Configure k3 master

Vagrant ssh k3-master
nestat -tnlp  #to check the master is up and running

Screenshot

#if you don't see all ports including 6443 is running then run below command
sudo service k3s restart

Configure nodes

Login to each node

Vagrant ssh iot-node1 / iot-node2.

Run command on each nodes

k3s agent --server https://[k3-master-ip]:6443 --token ${NODE_TOKEN} &

Where NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token from k3-master

Configure dashboard

Vagrant ssh k3-master 
k3s kubectl -n kube-system get service kubernetes-dashboard

Dashboard has been exposed on port 3***** (HTTPS). Configure port forwarding on Virutalbox (3*****) Now you can access it from your browser at:https://[k3-master-ip]:3***** To get the token for login

kubectl get secret -n kube-system $(kubectl get serviceaccount kubernetes-dashboard -n kube-system -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}" | base64 --decode 

Dashboard screenshot Screenshot

About

kubernete + Blockchain = IOT (WIP)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published