Skip to content

rioos2/beedi

Repository files navigation

RIO/OS Core : Code name: beedi

This repository comprises of the following daemons.

  • controller-manager
  • scheduler
  • gulp
  • nodelet
  • storlet
  • prometheus

Requirements

Golang 1.10 > +

Download and install golang in ~/software/go.

Pre requisites

  • Make sure [api server and watch server] are running.

  • Make sure the files are available.

    • /var/lib/rioos/config/service-account.key
    • /var/lib/rioos/config/service-account.crt
    • /var/lib/rioos/config/controller.rioconfig
    • /var/lib/rioos/config/scheduler.rioconfig
    • /var/lib/rioos/config/nodelet.rioconfig
    • /var/lib/rioos/config/storlet.rioconfig

They are automatically generated by running rioos-apiserver setup

Setup .bashrc


nano ~/.bashrc

GOROOT=~/software/go

GOPATH=$GOPATH:~/code/rioos/go/src

Running

controller-manager

A controller manager that interfaces with the api-server


./_outputs/rioos-nodelet --api-server=https://localhost:7443 --watch-server=https://localhost:8443 --service-account-private-key-file=/var/lib/rioos/config/service-account.key --root-ca-file=/var/lib/rioos/config/server-ca.cert.pem --use-service-account-credentials --rioconfig=/var/lib/rioos/config/controller.rioconfig --concurrent-serviceaccount-token-syncs=2 -v=4


scheduler

A scheduler that schedules jobs.


_outputs/rioos-scheduler -v=4 --api-server=https://localhost:7443  --watch-server=https://localhost:8443 --leader-elect=false --service-account-private-key-file=/var/lib/rioos/config/service-account.key --use-service-account-credentials --rioconfig=/var/lib/rioos/config/scheduler.rioconfig


nodelet

Run in every node


./_outputs/rioos-nodelet --api-server=https://localhost:7443 --watch-server=https://localhost:8443 --service-account-private-key-file=/var/lib/rioos/config/service-account.key --use-service-account-credentials --rioconfig=/var/lib/rioos/config/nodelet.rioconfig -v=4


storlet

Run in every server to serve as storage

./_outputs/rioos-storlet --api-server=https://localhost:7443 --watch-server=https://localhost:8443 --service-account-private-key-file=/var/lib/rioos/config/service-account.key --use-service-account-credentials --rioconfig=/var/lib/rioos/config/storelet.rioconfig -v=4

prometheus

Prometheus used for telemetry

./_outputs/prometheus --config.file="/var/lib/rioos/config/prometheus.yml"

where --v=4 denotes the log level.

Develop

Compile


mkdir -p code/rioos/go/src/gitlab.com/rioos

cd code/rioos/go/src/gilab.com/rioos

git clone https://gitlab.com/rioos/beedi.git -b <branch> (example: 2-0-stable)

cd beedi


Build

Useful in development. incremental builds.


make


Test

Does a clean build and test of all packages.


make test

Component Test

To test an individual file src/pkg/controller/assembly_controller_test.go


cd src/pkg/controller/

go test ./


Clean

Does a clean of the build, by deleting _outputs directory.


make clean


Documentation

[docs] (http://rio.digital.docs)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors