kaptain

command module
v0.0.0-...-e28fca9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 11 Imported by: 0

README

kaptain

Kubernetes monitoring and control system

Installation

  1. Build frontend
  • Install nodejs
# Using Ubuntu
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
  • Install yarn
# Using Ubuntu
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
  • Install frontend prequesites and build it
cd kaptain_front
yarn install
yarn build
  1. Build backend
  • Install go

https://golang.org/doc/install

  • Build backend
go build
  1. Set up environment
  • Make sure you are logged in a kubernetes, have valid config with access token with proper RBAC rights

  • Following variables are to be set:

API_PORT":"8765",
KUBE_CONFIG_PATH: "/home/user/.kube/config"
KUBERNETES_SERVICE_HOST": "ocp.rct.co.il"
KUBERNETES_SERVICE_PORT": 8443
DEBUG_MODE: 1
LOGGER_LEVEL: "debug"
  1. Run it
./kaptain

Navigate to http://localhost:8765

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL