Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.98 KB

installing-beehive-in-a-kubernetes-cluster.md

File metadata and controls

68 lines (46 loc) · 1.98 KB

Installing Beehive in a Kubernetes cluster

Install Kubernetes

The following instructions use k3s, but most of the steps should apply to any Kubernetes cluster.

  1. Install k3s.

Install Beehive Credentials

  1. Clone the Waggle PKI Tools repo
git clone https://github.com/waggle-sensor/waggle-pki-tools
  1. Create credentials for Beehive.
cd waggle-pki-tools
./create-credentials-for-beehive.sh
  1. Install credentials in Kubernetes cluster.
kubectl apply -f credentials/beehive.yaml

This will provide everything our cluster needs to authenticate and secure connections.

Install Beehive

  1. Clone the Beehive repo.
git clone https://github.com/waggle-sensor/waggle-beehive-v2
  1. Install Beehive to the Kubernetes cluster.
cd waggle-beehive-v2
./create-beehive.sh
  1. Confirm Beehive is running.

We'll confirm that Beehive is up and running using the following.

kubectl get pod

If everything was installed correctly, we should see the following pods with status Running.

NAME                                         READY   STATUS    RESTARTS   AGE
beehive-rabbitmq-0                           1/1     Running   0          6d4h
beehive-upload-server-99fc4c499-b5gn7        1/1     Running   0          6d3h
beehive-influxdb-0                           1/1     Running   0          6d3h
beehive-message-generator-5d94bdd587-wvtmm   1/1     Running   0          6d3h
beehive-message-logger-5585fc77b9-fxtwh      1/1     Running   0          6h18m
beehive-influxdb-loader-d5f7b856d-wbr4v      1/1     Running   0          6h7m
beehive-data-api-555c968656-dfmcp            1/1     Running   0          4h25m

Note: Beehive needs a couple minutes to prepare its databases, so some of these commands may initially fail. Please check again after 2-3 minutes to see if all the pods have stablized.