node-manager

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

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 9 Imported by: 0

README

node-manager

Manages nodes in hybrid k8s self-hosted cluster

Supported providers

  • Contabo
  • Hetzner Robot (dedicated)

Supported commands

  • Heal - reboots all nodes in NotReady state
  • Reboot - reboots node by its name in k8s cluster

Setting up

First of all set label provider={{your_provider}} for your nodes like this:

kubectl get no | awk '{print $1}' | xargs -I{} kubectl label nodes {} provider=contabo

Then setup credentials for you provider with env variables:

export CONTABO_CLIENT_ID={{PUT_SOMETHING_THERE}} \
export CONTABO_CLIENT_SECRET={{PUT_SOMETHING_THERE}} \
export CONTABO_API_USER={{PUT_SOMETHING_THERE}} \
export CONTABO_API_PASSWORD={{PUT_SOMETHING_THERE}}

Usage

./node-manager help
NAME:
   node-manager - Manages nodes

USAGE:
   node-manager [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
   heal, h    reboots all NotReady nodes
   reboot, r  reboots node
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version

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