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

Direct exec() the kubelet instead of launching in proc #16270

Merged
merged 4 commits into from
Sep 22, 2017

Conversation

smarterclayton
Copy link
Contributor

@smarterclayton smarterclayton commented Sep 10, 2017

If only the kubelet is launched by the node process, execve(2) instead of launching in process. Requires some corrections to the upstream flags to support round tripping. Support OPENSHIFT_ALLOW_UNSUPPORTED_KUBELET=<path> to allow a kubelet binary that is not exactly equivalent (symlink or hardlink) to the current file. If the kubelet binary cannot be found, print a warning and continue with the in-proc flow (so we don't break older users without the kubelet symlink).

To start:

$ openshift start node --config=... --enable=kubelet --loglevel=3
<will log, then exec kubelet>
... kubelet logs

Networking can be run separately with:

$ openshift start network --config=...

Did a quick sanity test against this, didn't hit any obvious issues.

Builds off #16269

@openshift-ci-robot
Copy link

@smarterclayton: Your pull request title starts with "WIP", so the do-not-merge/work-in-progress label will be added.

This label will ensure that your pull request will not be merged. Remove the prefix from your pull request title to trigger the removal of the label and allow for your pull request to be merged.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 10, 2017
@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 10, 2017
@smarterclayton
Copy link
Contributor Author

@deads2k here's the payoff

@smarterclayton
Copy link
Contributor Author

@knobunc re our discussion today after this change openshift start network can now do all the networking on a node, and in theory could do so from a daemonset assuming the cni paths can be set correctly.

@deads2k
Copy link
Contributor

deads2k commented Sep 11, 2017

please open the upstream upstream

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Sep 11, 2017 via email

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2017
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 16, 2017
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2017
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 16, 2017
@smarterclayton smarterclayton removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 16, 2017
@smarterclayton smarterclayton changed the title WIP - Direct exec() the kubelet instead of launching in proc Direct exec() the kubelet instead of launching in proc Sep 16, 2017
@smarterclayton
Copy link
Contributor Author

Note that this PR also exposes --v and --vmodule silently so that we are command line compatible with the upstreams.

Allows compatibility with Kubernetes invocation directly
LowDisk threshold is slated for removal in 1.8 and CFS quota is on by
default now.
If the only component running on the node is the kubelet, exec with the
necessary args instead of running the code in the current process.
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lgtm, but I'd like to wait for upstream approval on the PR before merging this one.

@smarterclayton
Copy link
Contributor Author

Upstream is approved.

@smarterclayton
Copy link
Contributor Author

@openshift/sig-platform-inftrastructure @openshift/sig-user-interface anyone have any concerns about adding -v and -vmodule back in (not in completions or output)?

@smarterclayton
Copy link
Contributor Author

I'm not hearing more comments?

@soltysh
Copy link
Contributor

soltysh commented Sep 21, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 21, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton, soltysh

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue (batch tested with PRs 16480, 16486, 16270, 16128, 16489)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants