autotune icon indicating copy to clipboard operation
autotune copied to clipboard

Input JSON needs to be populated with label information of the pods in the metrics section

Open bharathappali opened this issue 2 years ago • 0 comments

To extract the pod name, instead of selecting the pod based on searching container name and deployment name it would be easier to have the key and value of the labels associated to the pods to retrieve its name.

The kubernetes client abstraction already has the getPodsBy (namespace, labelKey, labelValue) so we could call the function to get pod details which has name in it.

The workaround we could do for now is to search all pods whose metadata matches the deployment name and has the container name provided in the input JSON.

We cannot assume the label will always be app=<deployment_name> so it would be better to get this information from the user

bharathappali avatar Sep 23 '22 11:09 bharathappali