Skip to content

[kubeadm]fix DynamicKubeletConfig feature to beta#65576

Merged
k8s-github-robot merged 1 commit intokubernetes:masterfrom
stewart-yu:stewart-kubelet-read#02
Jul 14, 2018
Merged

[kubeadm]fix DynamicKubeletConfig feature to beta#65576
k8s-github-robot merged 1 commit intokubernetes:masterfrom
stewart-yu:stewart-kubelet-read#02

Conversation

@stewart-yu
Copy link
Copy Markdown
Contributor

@stewart-yu stewart-yu commented Jun 28, 2018

What this PR does / why we need it:
As PR get merged, DynamicKubeletConfig feature convert to beta in v1.11, and set to true in default.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #kubernetes/kubeadm#957

Special notes for your reviewer:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels Jun 28, 2018
@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch 3 times, most recently from 7d96bfe to 0883365 Compare June 28, 2018 10:44
@neolit123
Copy link
Copy Markdown
Member

@stewart-yu some unit tests are not happy.

@kubernetes/sig-cluster-lifecycle-pr-reviews

Copy link
Copy Markdown
Member

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

added some notes about not handling feature-gate==false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[1]

Copy link
Copy Markdown
Member

@neolit123 neolit123 Jun 28, 2018

Choose a reason for hiding this comment

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

[1] what if the user has disabled the DKC via the feature gate?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[1]

@timothysc
Copy link
Copy Markdown
Contributor

/hold

We haven't decided to default or not in 1.11. I think before we do we need to make certain we'd thought through the implications of enabling by default. You can easily brick a whole cluster on a single config change.

Please open an issue in the kubeadm repo and outline your motivation and we can discuss within the SIG.

/cc @luxas

@k8s-ci-robot k8s-ci-robot requested a review from luxas June 28, 2018 21:35
@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 28, 2018
@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch from 0883365 to 1249a13 Compare June 29, 2018 00:59
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 29, 2018
@stewart-yu
Copy link
Copy Markdown
Contributor Author

stewart-yu commented Jun 29, 2018

sorry, my fault. @neolit123 @timothysc
misunderstand about set true as default and GA, revert some change now.

@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch 3 times, most recently from bd86f0a to 2c42c14 Compare June 29, 2018 02:45
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 29, 2018
@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch 3 times, most recently from 8f146fd to b41f72a Compare June 29, 2018 03:46
@stewart-yu
Copy link
Copy Markdown
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 1, 2018
@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch from b41f72a to c93b6eb Compare July 2, 2018 01:06
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 2, 2018
@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch from c93b6eb to 354512a Compare July 2, 2018 01:53
Copy link
Copy Markdown
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

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

Before we can approve this we need to answer a bunch of other questions.

What is the test plan for this?
How are we going to upgrade legacy?

/cc @rdodev

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@timothysc: GitHub didn't allow me to request PR reviews from the following users: rdodev.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

Before we can approve this we need to answer a bunch of other questions.

What is the test plan for this?
How are we going to upgrade legacy?

/cc @rdodev

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.

Copy link
Copy Markdown
Member

@fabriziopandini fabriziopandini Jul 3, 2018

Choose a reason for hiding this comment

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

Being dynamic kubelet beta and enabled by default, could you kindly confirm that it is still the case we should set DynamicKubeletConfig=true. I was expecting the logic here to be changed (set false when we don't want dynamic kubelet)....

Copy link
Copy Markdown
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

I agree with @timothysc that we should discuss this further at SIG level. In the meantime please answer to the question ^^^

@stewart-yu
Copy link
Copy Markdown
Contributor Author

Actually, i'm little knowledge about DynamicKubeletConfig in kubeadm how works
@fabriziopandini @timothysc thanks for your attention, i think may be need deeply investigate. If all done, will ping you back

@timothysc
Copy link
Copy Markdown
Contributor

@stewart-yu - We discussed this on the sig call today, and have decided that we do not want to enable this by default, but update to beta in the feature gates.

@stewart-yu stewart-yu force-pushed the stewart-kubelet-read#02 branch from 354512a to 37fdd1d Compare July 4, 2018 00:53
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 4, 2018
@stewart-yu
Copy link
Copy Markdown
Contributor Author

@timothysc thanks
PR updated

HighAvailability: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Alpha}, HiddenInHelpText: true},
CoreDNS: {FeatureSpec: utilfeature.FeatureSpec{Default: true, PreRelease: utilfeature.GA}},
DynamicKubeletConfig: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Alpha}},
DynamicKubeletConfig: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Beta}},
Copy link
Copy Markdown
Member

@dixudx dixudx Jul 4, 2018

Choose a reason for hiding this comment

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

We normally enable beta features by default. Also this is already enabled in v1.11 kubelet. We should make it consistent. @timothysc

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is correct, we had long conversation on the sig

fmt.Printf("[kubelet] Enabling Dynamic Kubelet Config for Node %q; config sourced from ConfigMap %q in namespace %s\n",
nodeName, configMapName, metav1.NamespaceSystem)
fmt.Println("[kubelet] WARNING: The Dynamic Kubelet Config feature is alpha and off by default. It hasn't been well-tested yet at this stage, use with caution.")
fmt.Println("[kubelet] WARNING: The Dynamic Kubelet Config feature is beta, but off by default. It hasn't been well-tested yet at this stage, use with caution.")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is beta, and enabled by default.

Copy link
Copy Markdown
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

HighAvailability: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Alpha}, HiddenInHelpText: true},
CoreDNS: {FeatureSpec: utilfeature.FeatureSpec{Default: true, PreRelease: utilfeature.GA}},
DynamicKubeletConfig: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Alpha}},
DynamicKubeletConfig: {FeatureSpec: utilfeature.FeatureSpec{Default: false, PreRelease: utilfeature.Beta}},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is correct, we had long conversation on the sig

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 13, 2018
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: stewart-yu, timothysc

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 13, 2018
@stewart-yu
Copy link
Copy Markdown
Contributor Author

Thanks. @timothysc
Removing /hold label by myself
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 14, 2018
@k8s-github-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

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. area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants