mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00

* Add batch of streams Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add env variables for batch point setup Fix InfluxDB reader tests. Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update Compose and Kubernetes config Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update env variables Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update docs Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Remove unused const Refactor code and docs. Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Handle NewBatchPoints error Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Reduce wait time in batch save test Fix typos. Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update tests Use single test with multiple cases to test single point save as well as a batch of points. Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add an explanation for not resetting ticker Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Deploy Mainflux on Kubernetes - WIP
Scripts to deploy Mainflux on Kubernetes (https://kubernetes.io). Work in progress. Not ready for deployment.
Steps
1. Setup NATS
-
Update
nats.conf
according to your needs. -
Create Kubernetes configmap to store NATS configuration:
kubectl create configmap nats-config --from-file=k8s/nats/nats.conf
- Deploy NATS:
kubectl create -f k8s/nats/nats.yml
2. Setup Users service
- Deploy PostgreSQL service for Users service to use:
kubectl create -f k8s/mainflux/users-postgres.yml
- Deploy Users service:
kubectl create -f k8s/mainflux/users.yml
3. Setup Things service
- Deploy PostgreSQL service for Things service to use:
kubectl create -f k8s/mainflux/things-postgres.yml
- Deploy Things service:
kubectl create -f k8s/mainflux/things.yml
4. Setup Normalizer service
- Deploy Normalizer service:
kubectl create -f k8s/mainflux/normalizer.yml
5. Setup adapter services
- Deploy adapter service:
kubectl create -f k8s/mainflux/<adapter_service_name>.yml
6. Setup Dashflux
- Deploy Dashflux service:
kubectl create -f k8s/mainflux/dashflux.yml
7. Setup NginX Reverse Proxy for Mainflux Services
- Create TLS server side certificate and keys:
kubectl create secret generic mainflux-secret --from-file=k8s/nginx/ssl/certs/mainflux-server.crt --from-file=k8s/nginx/ssl/certs/mainflux-server.key --from-file=k8s/nginx/ssl/dhparam.pem
- Create Kubernetes configmap to store NginX configuration:
kubectl create configmap mainflux-nginx-config --from-file=k8s/nginx/nginx.conf
- Deploy NginX service:
kubectl create -f k8s/nginx/nginx.yml
8. Configure Internet Access
Configure NAT on your Firewall to forward ports 80 (HTTP) and 443 (HTTPS) to mainflux-nginx service