Artem Chernyshev d0df929eb1
feat: implement events manager container
- set up `talos.events.sink` kernel args.
- build and run additional container to receive talos events.
- log all events in the adapter.

Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
2021-12-02 12:42:24 +03:00

27 lines
934 B
Go

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Package siderolink provides server-side implementation of the SideroLink API.
package siderolink
// SecretName is the name of the Secret Sidero stores information about siderolink installation.
//
// Secret holds private Sidero Wireguard key and installation ID.
const SecretName = "siderolink"
// LogReceiverPort is the port of the log receiver container.
//
// LogReceiverPort is working only over Wireguard.
const LogReceiverPort = 4001
// EventsSinkPort is the port of the events sink container.
//
// EventsSinkPort is working only over wireguard.
const EventsSinkPort = 4002
// Cfg is a default global instance of the SideroLink configuration.
//
// Cfg should be initialized first with `LoadOrCreate`.
var Cfg Config