hkube-dev-instructions

pre install

install hkube

  • create dev folder
  • clone hkube git clone https://github.com/kube-HPC/hkube.git
  • clone monitor server git clone https://github.com/kube-HPC/monitor-server.git
  • clone dashboard git clone https://github.com/kube-HPC/simulator.git
  • install lerna in global npm i -g lerna
  • run lerna bootstrap from ~/dev/hkube
  • run npm install to the monitor-server and the simulator
  • clone this repo
  • create folder ~/.kube/ and copy the config file from this repo to the flolder
  • create folder ~/dev/algorithms and copy alg1.py from this repo to the flolder
  • copy the dockers folder to ~/dev/~

running hkunbe

  • run dockers cd ~/dev then run hkube-docker.sh
  • api-server cd ~/dev/hkube/core/api-server run npm start
  • pipeline driver cd ~/dev/hkube/core/pipeline-driver run npm start
  • pipeline driver queue cd ~/dev/hkube/core/pipeline-driver-queue run npm start
  • algorithm operator cd ~/dev/hkube/core/algorithm-operator run DEV_MODE=true npm start
  • algoritm-queue cd ~/dev/hkube/core/algorithm-queue run QUEUE_ID="foo-bar-zuzu" npm start
  • worker source {venvfolder}; cd ~/dev/hkube/core/worker run ./runWithRandoPort.sh "green-alg" "python3 /home/{userName}/dev/alg1.py"
  • monitor server cd ~/dev/hkube/monitor-server run npm start(in windows for wsl since wslhost use port 5000) run HEALTHCHECK_PORT=5002 npm start
  • dashboard cd ~/dev/hkube/simulator run npm start