Loading

Check Real Time Resource Usage in RTF Appliance with a "kubectl top" Command

Дата публикации: Oct 10, 2025
Задача

Find the cpu/memory of pods in RTF appliance

Действия

QUESTION

1. How to check resource usage for an application in RTF?
2. Is there a way to find if the assigned resources are enough or if they need to assign more resource

ANSWER

You can check the CPU and memory usage in Ops Center, referring to  You can also use kubectl top command to check the real-time usage 
  1. Check the resources of a node. 
    $ sudo kubectl top node --heapster-namespace monitoring 
    NAME           CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%
    172.31.0.241   411m         20%    2711Mi          73%
    172.31.0.34    102m         5%     808Mi           21%
    172.31.1.15    134m         6%     1426Mi          38%
  2. Check the resources of a pod. Replace "demoapp" with own app name
    kubectl top pod  --heapster-namespace monitoring --all-namespaces -l app=demoapp
    NAMESPACE                              NAME                       CPU(cores)   MEMORY(bytes)
    6c3c3e41-e5a1-4423-81bc-0123456789ab   demoapp-55f4786b54-j2pdc   18m          523Mi
    6c3c3e41-e5a1-4423-81bc-0123456789ab   demoapp-55f4786b54-p6rmc   18m          528Mi
    Or leave the selector out to report on all your running pods 
    $ sudo kubectl top pod  --heapster-namespace monitoring --all-namespaces
    NAMESPACE                              NAME                                              CPU(cores)   MEMORY(bytes)
    bed42b62-604f-458d-915f-1b5018721f26   helloworldjo-5f46974c59-48m5x                     9m           559Mi
    bed42b62-604f-458d-915f-1b5018721f26   rtf-localhost-74bb54948c-5zzmc                    9m           539Mi
    bed42b62-604f-458d-915f-1b5018721f26   rtf-localhost-74bb54948c-8x6wt                    8m           575Mi
    bed42b62-604f-458d-915f-1b5018721f26   rtf-localhost-74bb54948c-dlcw9                    9m           529Mi
     ...
Номер статьи базы знаний

001116146

 
Загрузка
Salesforce Help | Article