Full management suite for libvirt and kubernetes clusters!
Go to file
Sivert V. Sæther 98789fdc73 Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
src Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
.gitignore base code for libvirt connections 2021-09-09 03:28:05 +02:00
LICENSE LICENCIO 2021-09-13 17:22:57 +02:00
README.md Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
TODO.md Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
go.mod Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
go.sum Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00
overlord.go Added basic HTTP API, lots of internal state work and libvirt domain XML parsing 2021-10-04 21:51:09 +02:00

README.md

Overlord

Full management suite for libvirt and kubernetes clusters!

Running it for yourself

Remember to go get dependencies.

Config

Create a file in the working directory of Overlord named lord.json. You may also specify a config file with -c command line argument. This file may look like this. Everything is optional!

{
  "LibVirtHosts": [
    "qemu:///system",
    "qemu+ssh://userwithlibvirtgroup@othernode/system"
  ],
  "LibVirtReadOnlyHosts": [
    "qemu+ssh://user@privatenode/system"
  ],
  "MongoDbUri": "mongodb://localhost:27017",
  "MongoDbName": "overlord",
  "InMemoryDB": false,
  "LogLevel": 0,
  "LogFilePath": "lord.log",
  "EnableAPI": true,
  "APIBindAddress": "127.0.0.1:8080",
  "EnableMatrix": false,
  "MatrixCreds": {
    "Homeserver": "https://matrix.org",
    "Username": "@changme:matrix.org",
    "Password": "yourpassword!"
  }
}

No log file means stdout only! The loglevels are;

type LogLevel int
const (
	TRACE LogLevel = iota
	DEBUG
	INFO
	WARN
	ERROR
	FATAL
)

Use the corresponding integer starting at 0 for TRACE up to 5 for FATAL.

Docker

Docker compose based development environment in the workings. There will also be a Overlord docker image.