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

add more clarification regarding priorityClassName use with DaemonSet #40851

Merged

Conversation

tzneal
Copy link
Contributor

@tzneal tzneal commented Apr 26, 2023

Not using a priority class name can result in DaemonsetPods remaining pending. This can occur with cluster-autoscaler where the new DS pod is created, but can't evict existing
scheduled pods due to not having a high priority class. The DS pod then remains pending
indefinitely unless existing pods on the node happen to terminate to make room.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language labels Apr 26, 2023
@k8s-ci-robot k8s-ci-robot added sig/docs Categorizes an issue or PR as relevant to SIG Docs. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 26, 2023
@tzneal tzneal force-pushed the add-daemonset-priority-class-information branch from 66a0070 to 00ed931 Compare April 26, 2023 12:54
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 26, 2023
@netlify
Copy link

netlify bot commented Apr 26, 2023

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 66a0070
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/64491e14263c9a00089abbb6
😎 Deploy Preview https://deploy-preview-40851--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2023

Pull request preview available for checking

Name Link
🔨 Latest commit 9e71196
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/6549a15221d85b000841e08f
😎 Deploy Preview https://deploy-preview-40851--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@tzneal tzneal force-pushed the add-daemonset-priority-class-information branch from 00ed931 to d41a3a0 Compare May 2, 2023 16:22
Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

I wouldn't use system-node-critical as the example priority class. Either make one up (priorityClassName: example), or use system-cluster-critical.

Why? Because it means that a reader who isn't paying attention is less likely to nobble their cluster.

@@ -35,6 +35,10 @@ spec:
volumeMounts:
- name: varlog
mountPath: /var/log
# system-node-critical is the highest priority class and can be used to ensure that
# a critical daemonset's pod will evict an existing pod if that is required to allow
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# a critical daemonset's pod will evict an existing pod if that is required to allow
# a node-critical pod will preempt an existing Pod if that is required to allow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reworked the language a bit, I didn't like the comment being about system-node-critical, with the commented out example being system-cluster-critical. I made it a bit more generic and just used system-cluster-critical in the example. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

On reflection, even that's higher that I'm really happy with.

content/en/examples/controllers/daemonset.yaml Outdated Show resolved Hide resolved
@tzneal tzneal force-pushed the add-daemonset-priority-class-information branch from d41a3a0 to ba424af Compare May 3, 2023 12:55
@tzneal tzneal requested a review from sftim May 9, 2023 12:47
Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

LGTM for docs

I don't think this needs a tech review.

/lgtm

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

LGTM label has been added.

Git tree hash: c1227b2aa4899271ee21a030c81fd42d3ad5c77d

@tzneal tzneal force-pushed the add-daemonset-priority-class-information branch from ba424af to 0ee42c9 Compare July 10, 2023 12:25
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 10, 2023
@k8s-ci-robot k8s-ci-robot requested a review from sftim July 10, 2023 12:25
@tzneal tzneal requested a review from reylejano July 10, 2023 19:00
@sftim
Copy link
Contributor

sftim commented Aug 28, 2023

LGTM, despite #40851 (comment)

@tzneal tzneal force-pushed the add-daemonset-priority-class-information branch from 0ee42c9 to b900d2c Compare November 5, 2023 18:28
Copy link
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

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

Thanks
/lgtm

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

LGTM label has been added.

Git tree hash: 7de311a4032482764f2105a62e416cd958b675e9

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 7, 2023
@tengqm tengqm added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Nov 7, 2023
@tengqm
Copy link
Contributor

tengqm commented Nov 7, 2023

/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 Nov 7, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: eea3a0c67b335f57e432724688b6588059949289

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tengqm

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-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 7, 2023
@k8s-ci-robot k8s-ci-robot merged commit 6af5701 into kubernetes:main Nov 7, 2023
6 checks passed
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants