How to get the resource usage of a pod in Kubernetes? How to get the resource usage of a pod in Kubernetes? kubernetes kubernetes

How to get the resource usage of a pod in Kubernetes?


Error from server (ServiceUnavailable): the server is currently unable to handle the request (get services http:heapster:)

It sounds like the heapster deployment just forgot to install the Service for heapster; I would expect this would get you past that error, but unknown whether it would actually cause kubectl top pods to start to work:

kubectl create -f /dev/stdin <<SVCapiVersion: v1kind: Servicemetadata:  name: heapster  namespace: kube-systemspec:  selector:    whatever-label: is-on-heapster-pods  ports:  - name: http    port: 80    targetPort: whatever-is-heapster-is-listening-onSVC