Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/heapster] service name causes top to fail #1132

Closed
mikesplain opened this issue May 19, 2017 · 6 comments
Closed

[stable/heapster] service name causes top to fail #1132

mikesplain opened this issue May 19, 2017 · 6 comments
Labels
triage/support Indicates an issue that is a support question.

Comments

@mikesplain
Copy link
Contributor

When using the stable/heapster chart I'm seeing kubectl top nodes fail with:

Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)

I was wondering if heapster might need additional labels such as

kubernetes.io/cluster-service: "true"

however it looks like the service needs:

  • running in the kube-system namespace
  • named heapster

Running in the correct namespace could be left to the user using the --namespace flag, but should we consider dropping https://github.com/kubernetes/charts/blob/master/stable/heapster/templates/service.yaml#L4 to .Chart.Name?

@unguiculus
Copy link
Member

cc @jose5918

@unguiculus unguiculus added the triage/support Indicates an issue that is a support question. label May 20, 2017
@jose5918
Copy link
Contributor

@mikesplain Do you think something along these lines would work for you?jose5918@109b6aa

@mikesplain
Copy link
Contributor Author

@jose5918 Yep! That's perfect, though I think you have a typo here:
https://github.com/jose5918/charts/blob/109b6aa2644b06f4754fd9826845a1e35f809d29/stable/heapster/templates/service.yaml#L10
I had to change it to .Values.service.labels

@jose5918
Copy link
Contributor

@mikesplain Thanks for catching that. Didn't have a chance to test it yesterday

@ferminromero
Copy link

@jose5918 Any plans to send out a PR for this?
I think the way heapster chart is currently set up is surprising (e.g. I expected our horizontal pod autoscalers to work out of the box after installing the chart)

@jose5918
Copy link
Contributor

jose5918 commented Jun 8, 2017

@ferminromero Sorry about that. Thank you for reminding me. I had forgotten a few things since I was busy moving recently.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage/support Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

4 participants