Cluster Manager Project Setup

Download Cluster manager project

Install mongo DB if you don't have mongo connection URL

docker pull mongo
docker run --name mongodb -d -p 27017:27017 -v /my/own/datadir:/data/db mongo

Update below config in .env.development.local

# DATABASE
DB_HOST = #connection url
DB_DATABASE = cluster_mgmt

#KANDOLA
# SELF_CLUSTER_API_WEBHOOK will point to the api exposed by the cluster manager api and enable infra manager to communicate to the cluster manager. It will be the machine public IP and the port on which cluster manager is running
SELF_CLUSTER_API_WEBHOOK = http://localhost:6001 #connection url to cluster api(self)
KANDOLA_INFRA_WEBHOOK = http://localhost:6000   #connection url to infra api
CLUSTER_ID = EUROPE_CLUSTER_1
AUTO_MYSQL_DEPLOY_FOLDER_PATH = /home/ubuntu/k8s/kandola
SELF_STORAGE_NODE_HOSTNAME = localhost

#KANDOLA PRICING PARAMS
VALID_PAYMENT_FREQUENCY = MONTHLY,YEARLY
VALID_REGION = WESTERN_EUROPE-United Kingdom-London
VALID_ENGINE = MySQL,MongoDB
VALID_DEPLOYMENT_TYPE = SHARED,DEDICATED
MIN_PRICE_USD = 25
MULTIPLIER_PER_GB = 0.08
REGION_MULTIPLIER = 1

Run below command to install dependencies

npm install

Run screen command

screen

npm run dev

Press ctrl A + D to detach from screen

When cluster manager starts and successfully registered it should available in infra db

Last updated