lagoon-logs-concentrator

by uselagoon

Helm chartv0.57.0Verified publisherOfficial

A Helm chart for Kubernetes which installs the Lagoon logs-concentrator service.

About this chart

Logs Concentrator

This service collects logs from logs-dispatchers (both local and remote) using fluentd's forward protocol, and sends them to Opensearch.

Configuration

See the commented sample configuration at the end of values.yaml.

TLS

Clients connect to this service via TLS. Mutual TLS authentication is performed by the client and server.

Important notes:

  • We run our own CA since the in-cluster CA signs certificates with only one year expiry.
  • The instructions below require cfssl.
  • Refer to this documentation for further details.

Generate a CA certificate

This is only required the first time you set up this chart.

Edit the ca-csr.json as required and run this command:

cfssl gencert -initca ca-csr.json | cfssljson -bare ca -
rm ca.csr

You'll end up with ca-key.pem and ca.pem, which are the CA key and certificate. Store these somewhere safe, they'll be used to generate all future certificates.

Generate a server certificate

This will be the certificate used by the logs-concentrator.

Edit the server.json as required and run this command:

cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=server server.json | cfssljson -bare server
rm server.csr

Generate a client certificate

This will be the certificate used by the lagoon-logging chart's logs-dispatcher.

Edit the client.json as required and run this command:

cfssl gencert -ca=ca.pem -ca-key=ca-key.pem -config=ca-config.json -profile=client client.json | cfssljson -bare client
rm client.csr

Deploy lagoon-logs-concentrator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has lagoon-logs-concentrator on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartlagoon-logs-concentrator is pinned at v0.57.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply