diff --git a/ui/src/utils/fetcherHooks/podsViewFetch.ts b/ui/src/utils/fetcherHooks/podsViewFetch.ts index 9c57592428..179ddbf17d 100644 --- a/ui/src/utils/fetcherHooks/podsViewFetch.ts +++ b/ui/src/utils/fetcherHooks/podsViewFetch.ts @@ -49,7 +49,7 @@ export const usePodsViewFetch = ( const containers: string[] = []; const containerSpecMap = new Map(); pod?.spec?.containers?.forEach((container: any) => { - const cpu = container?.resources?.requests?.cpu; + const cpu = container?.resources?.limits?.cpu; let cpuParsed: undefined | number; if (cpu) { try { @@ -58,7 +58,7 @@ export const usePodsViewFetch = ( cpuParsed = undefined; } } - const memory = container?.resources?.requests?.memory; + const memory = container?.resources?.limits?.memory; let memoryParsed: undefined | number; if (memory) { try {