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

kubeadm: run kube-proxy on non-master tainted nodes #65931

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

neolit123
Copy link
Member

What this PR does / why we need it:
kube-proxy should be able to run on all nodes, independent
on the taint of such nodes.

This restriction was previously removed in bb28449 but
then was brought back in d194926.

/cc @kubernetes/sig-cluster-lifecycle-pr-reviews
/cc @luxas @detiber @dixudx @discordianfish @mxey
/kind bug
/area kube-proxy
/area kubeadm

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#699

Special notes for your reviewer:
we are removing the requirement again, but please have a look at all the implications here.
hopefully we don't have to bring it again.

Release note:

kubeadm: run kube-proxy on non-master tainted nodes

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Jul 7, 2018
@k8s-ci-robot k8s-ci-robot requested a review from luxas July 7, 2018 02:19
@k8s-ci-robot k8s-ci-robot added sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. area/kube-proxy size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. area/kubeadm labels Jul 7, 2018
@k8s-ci-robot k8s-ci-robot requested a review from detiber July 7, 2018 02:19
@k8s-ci-robot
Copy link
Contributor

@neolit123: GitHub didn't allow me to request PR reviews from the following users: discordianfish, mxey.

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

In response to this:

What this PR does / why we need it:
kube-proxy should be able to run on all nodes, independent
on the taint of such nodes.

This restriction was previously removed in bb28449 but
then was brought back in d194926.

/cc @kubernetes/sig-cluster-lifecycle-pr-reviews
/cc @luxas @detiber @dixudx @discordianfish @mxey
/kind bug
/area kube-proxy
/area kubeadm

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#699

Special notes for your reviewer:
we are removing the requirement again, but please have a look at all the implications here.
hopefully we don't have to bring it again.

Release note:

kubeadm: run kube-proxy on non-master tainted nodes

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 7, 2018
@k8s-ci-robot k8s-ci-robot requested a review from dixudx July 7, 2018 02:19
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 7, 2018
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 7, 2018
Copy link
Member

@luxas luxas left a comment

Choose a reason for hiding this comment

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

Not sure here, let's check this up before merging wrt CriticalAddonsOnly

@@ -104,8 +104,6 @@ spec:
tolerations:
- key: CriticalAddonsOnly
Copy link
Member

Choose a reason for hiding this comment

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

I think we should make this accept everything, with Exists only with a key, or have both this and an Exists-only thing. @timothysc WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

the explanations i found on CriticalAddonsOnly are kind of vague. to my understanding these two lines, would help to run the daemonset on a node that already has critical pods.

but this thread suggested that "priority and preemption" (beta in 1.11) handles this "transparently"?
#57659 (comment)
https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/

Copy link
Member

Choose a reason for hiding this comment

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

+1 re make it land everywhere.

@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 9, 2018
@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 9, 2018
@neolit123
Copy link
Member Author

/retest

@neolit123
Copy link
Member Author

/test pull-kubernetes-bazel-build

operator: Exists
- key: {{ .MasterTaintKey }}
effect: NoSchedule
- operator: Exists
Copy link
Member

Choose a reason for hiding this comment

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

You need to add back the CriticalAddons toleration b/c it's used by the kubelet and the scheduler - https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/

@timothysc timothysc added this to the v1.11 milestone Jul 9, 2018
@timothysc timothysc added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Jul 9, 2018
Copy link
Member

@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.

@neolit123 - lets add

  labels:
    scheduler.alpha.kubernetes.io/critical-pod: ""
priorityClassName: system-node-critical

To prevent more PRs then lgtm

/approve

@timothysc
Copy link
Member

/cc @kubernetes/sig-release-bugs

for whoever is the v1.11 - release manager.

@k8s-ci-robot k8s-ci-robot added sig/release Categorizes an issue or PR as relevant to SIG Release. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 9, 2018
kube-proxy should be able to run on all nodes, independent
on the taint of such nodes.

This restriction was previously removed in bb28449 but
then was brought back in d194926.

Also, annotate with:
  scheduler.alpha.kubernetes.io/critical-pod: ""

and add a class in the template spec:
  priorityClassName: system-node-critical
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 9, 2018
@neolit123
Copy link
Member Author

updated (hope i got it right).
/cc @foxish

@k8s-ci-robot k8s-ci-robot requested a review from foxish July 9, 2018 19:45
@neolit123
Copy link
Member Author

/test pull-kubernetes-e2e-gce

Copy link
Member

@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

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: neolit123, timothysc

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

The pull request process is described here

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-github-robot
Copy link

[MILESTONENOTIFIER] Milestone Pull Request Needs Approval

@neolit123 @timothysc @kubernetes/sig-cluster-lifecycle-misc @kubernetes/sig-release-misc

Action required: This pull request must have the status/approved-for-milestone label applied by a SIG maintainer. If the label is not applied within 3 days, the pull request will be moved out of the v1.11 milestone.

Pull Request Labels
  • sig/cluster-lifecycle sig/release: Pull Request will be escalated to these SIGs if needed.
  • priority/important-soon: Escalate to the pull request owners and SIG owner; move out of milestone after several unsuccessful escalation attempts.
  • kind/bug: Fixes a bug discovered during the current release.
Help

@k8s-github-robot
Copy link

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

@neolit123
Copy link
Member Author

/test pull-kubernetes-e2e-kops-aws

@k8s-github-robot
Copy link

Automatic merge from submit-queue (batch tested with PRs 65931, 65705, 66033). If you want to cherry-pick this change to another branch, please follow the instructions here.

@k8s-github-robot k8s-github-robot merged commit 9e98f9a into kubernetes:master Jul 10, 2018
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Jul 10, 2018

@neolit123: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-kubernetes-e2e-kops-aws 8dcb980 link /test pull-kubernetes-e2e-kops-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@luxas
Copy link
Member

luxas commented Jul 11, 2018

Thanks!

k8s-github-robot pushed a commit that referenced this pull request Jul 13, 2018
…931-origin-release-1.11

Automatic merge from submit-queue.

Automated cherry pick of #65931: kubeadm: run kube-proxy on non-master tainted nodes

Cherry pick of #65931 on release-1.11.

#65931: kubeadm: run kube-proxy on non-master tainted nodes
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/kube-proxy area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. milestone/needs-approval priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. sig/release Categorizes an issue or PR as relevant to SIG Release. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support specifying kube-proxy tolerations
7 participants