How can we get the real resource usage (not resource requests) of each pod on Kubernetes by command line? Heapster is deprecated. Meanwhile, Metrics-server still does not su
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 <<SVC
apiVersion: v1
kind: Service
metadata:
name: heapster
namespace: kube-system
spec:
selector:
whatever-label: is-on-heapster-pods
ports:
- name: http
port: 80
targetPort: whatever-is-heapster-is-listening-on
SVC