This repository comprises of the following daemons.
controller-managerschedulergulpnodeletstorletprometheus
Download and install golang in ~/software/go.
-
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
nano ~/.bashrc
GOROOT=~/software/go
GOPATH=$GOPATH:~/code/rioos/go/src
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.
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
Useful in development. incremental builds.
make
Does a clean build and test of all packages.
make test
To test an individual file src/pkg/controller/assembly_controller_test.go
cd src/pkg/controller/
go test ./
Does a clean of the build, by deleting _outputs directory.
make clean
[docs] (http://rio.digital.docs)