agent

by LogDNA

Helm chartv203.11.2App 3.11.2

LogDNA collector agent daemonset for Kubernetes.

About this chart

LogDNA Kubernetes Agent

LogDNA - Easy, beautiful logging in the cloud.

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, labels, and annotations. View your logs at https://app.logdna.com or live tail using our CLI.

Prerequisites

  • Kubernetes 1.11.10+

Installing the Chart

Please follow directions from https://app.logdna.com/pages/add-source to obtain your LogDNA Ingestion Key.

To install the chart with the release name my-release:

$ helm repo add logdna https://assets.logdna.com/charts
$ helm install --set logdna.key=LOGDNA_INGESTION_KEY my-release logdna/agent

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

Tags support:

$ helm install --set logdna.key=LOGDNA_INGESTION_KEY,logdna.tags=production my-release logdna/agent

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm uninstall 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
daemonset.tolerationsList of node taints to tolerate[]
daemonset.updateStrategyOptionally set an update strategy on the daemonset.None
image.pullPolicyImage pull policyIfNotPresent
logdna.keyLogDNA Ingestion Key (Required)None
logdna.tagsOptional tags such as productionNone
priorityClassName(Optional) Set a PriorityClass on the Daemonset""
resources.limits.memoryMemory resource limits500Mi
updateOnSecretChangeOptionally set annotation on daemonset to cause deploy when secret changesNone
extraEnvAdditional environment variables{}
extraVolumeMountsAdditional Volume mounts[]
extraVolumesAdditional Volumes[]
serviceAccount.createWhether to create a service account for this releasetrue
serviceAccount.nameThe name of the service account. Defaults to logdna-agent unless serviceAccount.create=false in which case it defaults to defaultNone
podSecurityContextThe securityContext for the agent podsadd: DAC_READ_SEARCH, drop: all
nodeSelectorThe nodeSelector for the agent podsNone
podAnnotationsAdditional annotations for the agent podsNone
secretAnnotationsAdditional annotations for the agent secret(s)None

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

$ helm install --set logdna.key=LOGDNA_INGESTION_KEY,logdna.tags=production my-release logdna/agent

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

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

Deploy agent with OpenTenant

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