Kubernetes Service¶
This service scan kubernetes cluster using a label selector
Routes¶
GET /:selector/:params?¶
selectoris the label selector to useparamsis an additional list of resources to scan (array of strings)
The resources are taken from this 2 files:
Example¶
Here we are looking for all resource with the label deploymentId=b367d339-d848-446f-aee4-963a6e3cc0c1
/deploymentId=b367d339-d848-446f-aee4-963a6e3cc0c1
Response¶
{
"list": [
{
"kind": "Object",
"icon": "crd",
"items": [ {...} ]
},
{
"kind": "ProviderConfig",
"icon": "crd",
"items": [ {...} ]
},
{
"kind": "Repo",
"icon": "crd",
"items": [ {...}, {...} ]
},
{
"kind": "configmap",
"icon": "cm",
"items": [ {...} ]
}
],
"count": 4
}
Note
Services respond with valid JSON, so, if the response is an array, it will be wrapped in the list property.
If the response contains the list proerty it will add the property count with the number of items in the list.