Kubernetes

Configure Kubernetes Log Source with BindPlane

Adding Universal Agent to a Kubernetes Environment

  1. Add a Template and select Host Metrics
  1. Add a Kubernetes Log Source
  1. After creating the Log source go back to the template and attach it.
  1. Once the log source is attached to the template you will get the Kubernetes Deployment Instructions in the template.

Supported Versions

Kubernetes versions

  • 1.21
  • 1.20
  • 1.19
  • 1.18
  • 1.17
  • 1.16
  • 1.15
  • 1.14
  • 1.13

Prerequisites

RBAC must be enabled to gather logs (this is generally enabled by default).

Configuration

Cluster

Option

Description

Containers Log Path

Use this field to verify the path to the Containers log file and adjust default as needed (/var/log/containers/*).

Kubelet Journald Log Path

Use this field to specify the Kubelet Journald log path. It will read from /run/journal/ or /var/log/journal if this parameter is omitted.

Cluster Name

Use this field to add a Cluster Name to the resource label.

Start At

Choose whether to start reading from the beginning or end of a file with "end" being the default.

Events

Option

Description

Namespaces

Use this field to specify an array of namespaces. The default is to use all namespaces.

Cluster Name

Use this field to add a Cluster Name to the end of the resource label.

Container

Option

Description

Cluster Name

Use this field to add a Cluster Name to the resource label.

Pod Name

Use this field to specify the name of the pod to collect logs from.

Container Name

Use this field to specify the name of the container to collect logs from.

Exclude Files

Use this field to specify a pattern of files to exclude.

Start At

Choose whether to start reading from the beginning or end of a file with "end" being the default.

Log Types

Types

k8s.controller

k8s.scheduler

k8s.apiserver

k8s.proxy

k8s.container

k8s.kubelet

k8s.node

Dashboards

Dashboards for this source will be added soon.

Advanced

For more information on the advanced configuration capabilities, see our detailed plugin guide here.