Help Center/ Migration Center/ Tool Guide/ Tool Discovery/ Configuring Collector Parameters/ Kubernetes Pod Network Collector (app-discovery-k8s-pod-net)
Updated on 2024-12-13 GMT+08:00

Kubernetes Pod Network Collector (app-discovery-k8s-pod-net)

This collector collects the network information of Kubernetes cluster pods to analyze associations between applications. For details about the configuration parameters, see Table 1.

Table 1 Parameters for configuring the Kubernetes pod network collector

Parameter

Mandatory

Configuration

output_path

No

Enter the storage path of the collection result file (app-discovery-k8s-pod-net-xxx.csv). If this parameter is left blank, the storage path defaults to <collector-installation-path>\output\file.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-k8s-pod-net\output\file\app-discovery-k8s-pod-net-xxx.csv

rules_path

Yes

Enter the storage path of the collection rule file (a .properties file). If this parameter is left blank, the preset rules are used and the path defaults to <Collector installation path>\config\rules.properties.

Example: C:\Edge\tools\plugins\collectors\app-discovery-collectors\python\mgc-app-discovery-collectors\app-discovery-k8s-pod-net\config\rules.properties

NOTICE:

You are advised to use the default rule file. If you need to customize collection rules, modify the default rule file.

period

Yes

Specify the collection interval. The unit can be s (second) or m (minute). The value is an integer ranging from 1 to 30.

time

Yes

Specify the collection duration. If the collection duration exceeds the specified value, the collection stops. The unit can be m (minute), h (hour), or d (day). The value is an integer greater than or equal to 1.

config_path

Yes

Enter the storage path of the cluster configuration file (.yaml).

CAUTION:

This storage path stores only YAML configuration files of clusters to be collected. Irrelevant YAML files should not be stored here.

To obtain the content of a cluster's configuration file, perform the following steps:

On a cluster node, run the following command, and copy the returned information to a YAML file.

cat ~/.kube/config
NOTICE:

Only one configuration file can be stored for a Kubernetes cluster.