Was this helpful?
Get the number of pods in the namespace based on their status (Unknown, Failed, Pending, Running, Succeeded).
클러스터 정보
OK
해당 클러스터에 속한 네임스페이스 정보
const response = await fetch('/v1/monitoring-ns/metric/pod-status/result/current', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "clusters": [ { "name": "thingcluster", "namespaces": [ { "name": "cocktail-system" } ] } ] }), }); const data = await response.json();
{ "thingcluster": { "cocktail-system": { "pod_run": 39, "pod_total": 39, "pvc_bound": 0, "pvc_lost": 0, "pvc_pending": 0 } } }