Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request for a "hollow"-node-problem-detector having an empty list of conditions and rules inside kernel monitor config #50

Closed
shyamjvs opened this issue Dec 15, 2016 · 8 comments · Fixed by kubernetes/kubernetes#39951

Comments

@shyamjvs
Copy link
Member

As part of the effort to make testing using kubemark mimic real clusters as closely as possible, we are planning to add container for a "hollow-node-problem-detector" inside hollow-node alongside the existing containers "hollow-kubelet" and "hollow-kubeproxy". For this, it is required to have a node-problem-detector image which essentially has conditions and rules inside the kernel monitoring config set to an empty list. Also, this image should eventually (once it is tested to work fine in Kubemark) be pushed to gcr.io/google-containers.

@kubernetes/sig-scalability @wojtek-t @gmarek @Random-Liu

@Random-Liu
Copy link
Member

Make a NPD with node rules and conditions set SGTM.

However, I would suggest to use a ConfigMap to overwrite the configuration of NPD instead of creating another image http://kubernetes.io/docs/admin/node-problem/#overwrite-the-configuration.

@shyamjvs WDYT?

@shyamjvs
Copy link
Member Author

shyamjvs commented Dec 16, 2016 via email

@shyamjvs shyamjvs reopened this Dec 28, 2016
@shyamjvs
Copy link
Member Author

Ref kubernetes/kubernetes#39245
@Random-Liu What would be the easiest way to achieve this (i.e. make the apiserver IP address that the NPD talks to, overridable through a flag)?
Also, IIUC this should involve building a new docker image for NPD and uploading it to "gcr.io/google_containers/node-problem-detector:v0.2" in such a way that this won't affect other places where NPD is already in use. Esentially, this new image should be able to (optionally) take a flag at the entrypoint of NPD for the apiserver's IP address (which can be made available through an env var using configMap).

@wojtek-t
Copy link
Member

@shyamjvs - I don't understand your question. You need to introduce a flag, and build the client based on the value of this flag (if unset, use InClusterConfig, otherwise, use address from the flag). What is your question?

Regarding image - we should NEVER change the image. We already have v0.2 so we should built v0.3 and update all references to the new image.

@shyamjvs
Copy link
Member Author

@wojtek-t I was confirming if overriding the apiserver IP address through a flag indeed the easiest option. But I found out a better solution that does't require us to touch any NPD code or image (described it in comments on kubernetes/kubernetes/issue#39245).

And regarding the last line of my previous comment, I meant that as part of adding this new flag we need to also pass it in the entrypoint of the NPD image (inside the Dockerfile https://github.com/kubernetes/node-problem-detector/blob/master/Dockerfile#L19) because we do not explicitly start the container using a command inside the manifest. And the value of the flag itself has to be passed to the container through an env var using the NPD configMap.

@shyamjvs
Copy link
Member Author

Continuing further discussion about this issue on kubernetes/kubernetes/issue#39245 to avoid confusion between both threads.
We can continue the discussion here if and when we plan to change code in this repo.

@gmarek
Copy link

gmarek commented Jan 5, 2017 via email

@Random-Liu
Copy link
Member

@gmarek I'll do another review today, and I hope it will be in this or next week.

k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this issue Jan 19, 2017
Automatic merge from submit-queue (batch tested with PRs 40081, 39951)

Passing correct master address to kubemark NPD & authenticating+authorizing it with apiserver

Fixes #39245 
Fixes kubernetes/node-problem-detector#50

Added RBAC for npd and fixed issue with the npd falling back to inClusterConfig.

cc @kubernetes/sig-scalability-misc @wojtek-t @gmarek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants