Skip to content

Kubernetes

The Kubernetes backend fetches logs from Kubernetes pods.

Example configuration

backends:
  - kubernetes:
      routes:
        type: nginx
        idPrefix: pod-1-
      labels:
        name: acmehost
        type: Nginx
      namespace: default
      kubeconfig: # empty kubeconfig means the current kubeconfig will be used for connection.

KubernetesConfig

Field Description Scheme Required
routes Specify routes that would match this backend.
(Read more Routing)
[]Route true
labels A set of key value pairs that'll be attached to individual items in the search result map[string]string optional
kubeconfig Specify configuration for Kubernetes connection.
empty kubeconfig means the current kubeconfig will be used for connection.
kommons.EnvVar true
namespace Specify the namespace for the kubeconfig. string true