Kubernetes Clusters

Kubernetes Clusters

#340820

Description

This resource is used to return all clusters, as specified in the data forwarder.

No filtering is applied.

This endpoint does not require the analysis ID that is required when using the /systems and /results endpoints.

Resources

  • /kubernetes/clusters
  • /kubernetes/clusters/<clusterName>

Supported Operations

Table: Kubernetes Container Systems Supported Operations

HTTP Method

Input

Output

Description

GET /
kubernetes/clusters

Path Parameter:

N/A

Collection of:

Use this resource to return a list of clusters from which data is being collected.

GET /
kubernetes/clusters/<clusterName>

Path Parameter:

clusterName

Collection of:

Use this resource to retrieve additional details for a specific Kubernetes cluster.

This endpoint returns a structured view, including namespaces, pods, and containers.

Parameters

Path Parameters

Table: Kubernetes Clusters Path Parameters

Parameter Name

Type

Description

clusterName

string

The unique cluster name obtained from the output of /kubernetes/clusters or from the Kubex UI Connections tab.

Response

Table: Kubernetes Container Clusters Response Schema

Element

Type

Filter/Sort

Description

cluster

string

 

The cluster name as specified in the config.yaml files.

firstCollectionTime

date

 

The date and time on which data collection started, in the format: YYYY-MM-DDTHH:mm:ssZ.

lastCollectionTime

date

 

The date and time of the most recent data collection, in the format: YYYY-MM-DDTHH:mm:ssZ.

nodeCount

string

 

The number of nodes discovered in this cluster.

nodeGroupCount

string

 

The number of node groups discovered in this cluster.

containerCount

string

 

The number of containers discovered in this cluster.

kubexAgentVersion

string

 

The data forwarder version.

kubernetesVersion

string

 

The Kubernetes version.

prometheusVersion

string

 

The Prometheus version.

namespace

string

 

The name of the namespace.

podOwnerName

string

 

The pod owner's name.

containers

string

 

The names of the containers in the selected pod.

Examples

Example: Listing All Kubernetes Clusters

The following example shows you how to return all clusters included in data collection.

Example: Listing Specific Cluster Details

The following example shows you how to return details for a specific named cluster.