aspanner / flightctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flight Control

Flight Control is a service for declarative, GitOps-driven management of edge device fleets running ostree-based Linux system images.

Note

Flight Control is still in early stage development!

Building

Prerequisites:

  • git, make, and go (>= 1.20), and podman-compose

Flightctl agent reports the status of running rootless containers. Ensure the podman socket is enabled:

systemctl --user enable --now podman.socket

Checkout the repo and from within the repo run:

make build

Running

Note: If you are developing with podman on an arm64 system (i.e. M1/M2 Mac) change the postgresql image with:

export PGSQL_IMAGE=registry.redhat.io/rhel8/postgresql-12
podman login registry.redhat.io

Start the Flight Control database:

podman-compose -f deploy/podman/compose.yaml up

Start the Flight Control API server:

bin/flightctl-server

Note it stores its generated CA cert, server cert, and client-bootstrap cert in $HOME/.flightctl/certs.

Use the flightctl CLI to apply, get, or delete resources:

bin/flightctl apply -f examples/fleet.yaml
bin/flightctl get fleets

Use the devicesimulator to simulate load from devices:

bin/devicesimulator --count=100

Metrics

Start the observability stack:

podman-compose -f deploy/podman/observability.yaml up

The Grafana and Prometheus web UIs are then accessible on http://localhost:3000 and http://localhost:9090, respectively.

About

License:Apache License 2.0


Languages

Language:Go 98.0%Language:Makefile 1.8%Language:Dockerfile 0.2%