Giter Club home page Giter Club logo

selfhosted-nightscout-and-nsreporter's Introduction

Selfhosted Nightscout and NightscoutReporter

I made this project some weeks ago just to try learn and practice Kubernetes. Of course this task could be accomplished by Docker Compose or similar, but I wrote it is just a practice test about Kubernetes.

Right now, everything is supposed to work fine but let me know if you will find something wrong. I've tested it in a kubernetes single node "cluster" made using vagrant (using Virtualbox), but you can test it wherever you want. Let me know if you will find something wrong or something that could be enhanced in any step.

How to install

To install everything from scratch you should follow the steps below on kubernetes master node:

  • Clone this repo

    git clone https://github.com/quietwalker-libre/selfhosted-nightscout-and-NSReporter.git

  • Execute the build.sh:

  cd selfhosted-nightscout-and-NSReporter
  chmod +x build.sh 
  ./build.sh 

Usefull informations

If the build.sh script will terminate with success, at the end of its execution it will print all the necessary information needed to start to use nightscout and nightscout reporter. The summary should looks like this:

  [INFO] Report of the most usefull informations:
  XDrip+ Cloud Upload connection string: abcder6374fgfg
  Nightscout APISECRET: fgdghgj245hhk
  MongoDB Admin user: mongouser
  MongoDB Admin passwd: srjrtmrhd4gf
  MongoDB Nightscout user: nightscout
  MongoDB Nightscout password: hrmweot72olgd

  [INFO] List of services IP/ports:
  [-->] Nighscout Site: http://192.168.0.120:30101
  [-->] Nighscout Reporter Site: http://192.168.0.120:30102
  [-->] MongoDB Service: mongo://192.168.0.120:30100

Kubernetes services and port

To expose the MongoDB, Nightcout and NightScout Reporter pods I used the NodePort Kubernetes Service. As I wrote above, the external MongoDB service will be removed in the coming versions. The External Service in this version are:

  • MongoDB: reachable at port 30100
  • NightScout: reachable at port 30101
  • NightScout Reporter: reachable at port 30102

TO DO

After some weeks I see that I should change something in the build.sh script:

  • all the docker build in the build.sh command should have the * -f * option with the specified dockerfile. I will fix it as soon as I can.
  • It's not necessary to externally expose the MongoDB service. The service should be declared as ClusterIP
  • Something else that I don't remember :P

selfhosted-nightscout-and-nsreporter's People

Contributors

quietwalker-libre avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.