Kubernetes

Configure Kubernetes Log Source with BindPlane

356

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

OptionDescription
Containers Log PathUse this field to verify the path to the Containers log file and adjust default as needed (/var/log/containers/*).
Kubelet Journald Log PathUse 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 NameUse this field to add a Cluster Name to the resource label.
Start AtChoose whether to start reading from the beginning or end of a file with "end" being the default.

Events

OptionDescription
NamespacesUse this field to specify an array of namespaces. The default is to use all namespaces.
Cluster NameUse this field to add a Cluster Name to the end of the resource label.

Container

OptionDescription
Cluster NameUse this field to add a Cluster Name to the resource label.
Pod NameUse this field to specify the name of the pod to collect logs from.
Container NameUse this field to specify the name of the container to collect logs from.
Exclude FilesUse this field to specify a pattern of files to exclude.
Start AtChoose 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

Advanced

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