kubernetes

Params

Configuration parameters for the kubernetes adapter. These params control the manner in which the kubernetes adapter discovers and generates values related to pod information.

The adapter works by looking up pod information by UIDs (of the form: “kubernetes://pod.namespace”). It expects that the UIDs will be supplied in an input map for three distinct traffic classes (source, target, and origin).

For all valid UIDs supplied, this adapter generates a map of output values containing information about the related pods. The generated map is keyed by value names generated by concatenating a pod identifier prefix with a value name. For example, for the pod corresponding to a sourceUID and the output value of pod ip, this adapter will output a map that includes a key of “sourcePodIP” (assuming parameter defaults). next field id: 19

FieldTypeDescription
kubeconfigPathstring

File path to discover kubeconfig. For in-cluster configuration, this should be left unset. For local configuration, this should be set to the path of a kubeconfig file that can be used to reach a kubernetes API server.

Default: "" (unset)

cacheRefreshDurationDuration

Controls the resync period of the kubernetes cluster info cache. The cache will watch for events and every so often completely resync. This controls how frequently the complete resync occurs.

Default: 5 minutes

sourceUidInputNamestring

Configures how the UID for the source pod for traffic is identified in the input map.

Default: sourceUID

targetUidInputNamestring

Configures how the UID for the target pod for traffic is identified in the input map.

Default: targetUID

originUidInputNamestring

Configures how the UID for the origin pod for traffic is identified in the input map.

Default: originUID

targetServiceInputNamestring

Configures how the identifier for the target service is populated in the input map (if at all). When supplied, this value will be used (after successful normalization) in place of the value derived from the pod cache for the target pod in the generated map of output values.

Default: targetService

clusterDomainNamestring

Configures the cluster domain name to use for service name normalization.

Default: svc.cluster.local

podLabelForServicestring

In order to extract the service associated with a source, target, or origin, this adapter relies on pod labels. In particular, it looks for the value of a specific label, as specified by this parameter.

Default: app

sourcePrefixstring

The prefix used for source pod output value names.

Default: source

targetPrefixstring

The prefix used for target pod output value names.

Default: target

originPrefixstring

The prefix used for origin pod output value names.

Default: origin

labelsValueNamestring

The value name for the pod labels output value.

Default: Labels

podNameValueNamestring

The value name for the pod name output value.

Default: PodName

podIpValueNamestring

The value name for the pod ip address output value.

Default: PodIP

hostIpValueNamestring

The value name for the pod host ip address output value.

Default: HostIP

namespaceValueNamestring

The value name for the pod namespace output value.

Default: Namespace

serviceAccountValueNamestring

The value name for the pod service account name output value.

Default: ServiceAccountName

serviceValueNamestring

The value name for the service output value.

Default: Service