logdna-agent

by joaquinito2051

Helm chartv1.0.0App 1.5.6

Run this, get logs. All cluster containers. LogDNA collector agent daemonset for Kubernetes.

About this chart

LogDNA Kubernetes Agent

LogDNA - Easy, beautiful logging in the cloud.

TL;DR;

$ helm install --set logdna.key=LOGDNA_INGESTION_KEY <helm-repo>/logdna-agent

$ helm install --set logdna.key=LOGDNA_INGESTION_KEY stable/logdna-agent

Introduction

This chart deploys LogDNA collector agents to all nodes in your cluster. Logs will ship from all containers. We extract pertinent Kubernetes metadata: pod name, container name, container id, namespace, and labels. View your logs at https://app.logdna.com or live tail using our CLI.

Prerequisites

  • Kubernetes 1.2+

Installing the Chart

To install the chart with the release name my-release, please follow directions from https://app.logdna.com/pages/add-source to obtain your LogDNA Ingestion Key:

$ helm install --name my-release \
    --set logdna.key=LOGDNA_INGESTION_KEY,logdna.autoupdate=1 <helm-repo>/logdna-agent

$ helm install --name my-release \

You should see logs in https://app.logdna.com in a few seconds.

Tags support:

$ helm install --name my-release \
    --set logdna.key=LOGDNA_INGESTION_KEY,logdna.tags=production,logdna.autoupdate=1 <helm-repo>/logdna-agent

$ helm install --name my-release \

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following tables lists the configurable parameters of the LogDNA Agent chart and their default values.

ParameterDescriptionDefault
logdna.keyLogDNA Ingestion Key (Required)None
logdna.tagsOptional tags such as productionNone
logdna.autoupdateOptionally turn on autoupdate by setting to 1 (auto sets image.pullPolicy to always)0
image.pullPolicyImage pull policyIfNotPresent
image.tagImage taglatest
resources.limits.memoryMemory resource limits500Mi
tolerationsList of node taints to tolerate[]

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
    --set logdna.key=LOGDNA_INGESTION_KEY,logdna.tags=production,logdna.autoupdate=1 <helm-repo>/logdna-agent

$ helm install --name my-release \

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/logdna-agent

$ helm install --name my-release -f values.yaml stable/logdna-agent

Tip: You can use the default values.yaml

Deploy logdna-agent with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has logdna-agent 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 chartlogdna-agent is pinned at v1.0.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