Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 907 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 907 Bytes

Sensors

Sensors handles IoT devices mounted on Raspberry Pi modules in a Kubernetes cluster.

Hardware

TODO

Create a k3s cluster

https://docs.k3s.io/quick-start#install-script

  • Create a single node cluster

    curl -sfL https://get.k3s.io | sh -
    
  • Add Raspberry Pi agent nodes

    curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=mynodetoken sh -s - --node-name raspberrypi --node-label sensors.role=worker
    

Create sensors namespace

kubectl create namespace sensors

Install RabbitMQ

helm install rabbitmq-operator charts/rabbitmq-operator -n sensors
helm install rabbitmq-cluster charts/rabbitmq-cluster --values charts/settings.yaml -n sensors
  • Wait for RabbitMQ operator and cluster to be ready

Install Sensors

helm install sensors charts/sensors --values charts/settings.yaml -n sensors