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

fix(agent-daemonset): tolerate all taints #56

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

c3y1huang
Copy link
Collaborator

@c3y1huang c3y1huang commented Nov 24, 2022

Propose to have Agent DaemonSet respecting all taints to avoid getting blocked in node bundle collection. Because in Longhorn, we cannot predict and have no control over the node taints.

longhorn/longhorn#2759

Agent DaemonSet should respect all taints to avoid
getting blocked in node bundle collection.

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
@c3y1huang
Copy link
Collaborator Author

/cc @innobead

@c3y1huang c3y1huang marked this pull request as ready for review November 24, 2022 15:44
Copy link

@innobead innobead left a comment

Choose a reason for hiding this comment

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

LGTM.

This can be improved in the future if we really need to respect nodes with customized taints instead of hard-code here.

@ibrokethecloud
Copy link
Collaborator

Is the aim of the change to allow the support-bundle-kit ds to be deployed to nodes with user taints?

currently the sbk, will wait for zip files to be available from nodes, which match the following criteria:

https://github.com/rancher/support-bundle-kit/blob/master/pkg/manager/manager.go#L332

Any nodes not meeting the criteria will not be included in the map, and sbk will not wait for the corresponding zip files to be available.

@c3y1huang
Copy link
Collaborator Author

Do you mean we should ask the user to add labels and pick out the untainted nodes?

@innobead
Copy link

Is the aim of the change to allow the support-bundle-kit ds to be deployed to nodes with user taints?

currently the sbk, will wait for zip files to be available from nodes, which match the following criteria:

https://github.com/rancher/support-bundle-kit/blob/master/pkg/manager/manager.go#L332

Any nodes not meeting the criteria will not be included in the map, and sbk will not wait for the corresponding zip files to be available.

Does this criteria respect user taints? It seems only respecting node selector, so tainted nodes will still be counted into the map?

@bk201
Copy link
Member

bk201 commented Nov 25, 2022

LGTM.

This can be improved in the future if we really need to respect nodes with customized taints instead of hard-code here.

LGTM, adding an issue to track: #57

Copy link
Collaborator

@ibrokethecloud ibrokethecloud left a comment

Choose a reason for hiding this comment

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

LGTM.

Just verified and in maintenance modes the kubelet is ready, which should still allow the manager to collect node bundles from these nodes.

@bk201 bk201 merged commit d605867 into rancher:master Nov 28, 2022
@c3y1huang c3y1huang deleted the fix-tolerate-all branch November 28, 2022 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants