POD service 都正常 服务没有任何响应

情况一、查看deploy 查看资源 kubectl edit deploy xx  -nxxxx 修改cpu和mem

查看 使用cpu最高的pod  kubectl top pods -nxxxx

 

 

 

 

  1. 查看集群中所有节点的 CPU 和内存使用情况:

    kubectl top nodes
  2. 查看指定节点的 CPU 和内存使用情况:

    kubectl top node <node-name>
  3. 查看集群中所有 Pod 的 CPU 和内存使用情况:

    kubectl top pods --all-namespaces
  4. 查看指定命名空间中所有 Pod 的 CPU 和内存使用情况:

    kubectl top pods -n <namespace>
  5. 查看指定 Pod 的 CPU 和内存使用情况:

    kubectl top pod <pod-name> -n <namespace>


    kubectl top pod --containers -n xxxx
posted @ 2024-05-21 17:24  清明雨下  阅读(19)  评论(0)    收藏  举报