Repository navigation
daemon: fix taint issues - #290
yuqi-zhang wants to merge 2 commits into
Conversation
Signed-off-by: Yu Qi Zhang <[email protected]>
Fix typos, change file location, and de-dupe taints. Signed-off-by: Yu Qi Zhang <[email protected]>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: yuqi-zhang If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Note: Tests should be transitioned off of ssh. Some are still using ssh, but we'll likely want to work with them to make sure it changes before we enable the tainting in the OS layer. |
WDYT about:
i think we already kinda follow this..
|
|
I'm OK with @abhinavdahiya's naming propsal. This will cause us to need to update documentation with @chrisnegus and update the taint script, but I think that's fine. |
kikisdeliveryservice
left a comment
There was a problem hiding this comment.
I think in a future PR we might want to add more of the why and details on the what happens when nodes are tainted.
| Etcd is co-located on master nodes as static pods. The draining behavior defined above prevents draining of static pods to prevent interference to etcd cluster by the daemon. | ||
|
|
||
| ## Tainting | ||
| The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint. |
There was a problem hiding this comment.
typo -> "to to"
| Etcd is co-located on master nodes as static pods. The draining behavior defined above prevents draining of static pods to prevent interference to etcd cluster by the daemon. | ||
|
|
||
| ## Tainting | ||
| The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint. |
There was a problem hiding this comment.
"via." -> "via"
| ## Tainting | ||
| The MachineConfigDaemon is also responsible for tainting the node every time an SSH access is detected. It does this via. watching a file at `/etc/machine-config-daemon/ssh-tainted`, which other scripts can write to to notify the MCD to apply the taint. | ||
|
|
||
| The taint can be removed via. `kubectl taint nodes <node> rhcosSsh-`. |
There was a problem hiding this comment.
"via." -> "via"
|
|
||
| MachineConfigDaemon is scheduled on the machines in a cluster as a DaemonSet. This daemon is responsible for performing machine updates in OpenShift 4. The update will include tasks related to the systemd units, files on disk, operating system upgrades etc. The MachineConfigDaemon updates a machine to configuration defined by MachineConfig as instructed by the MachineConfigController. | ||
|
|
||
| The MachineConfigDaemon is also responsible for tainting a machine with rhcosSsh=accessed:NoSchedule when it detects an SSH access to the machine. |
There was a problem hiding this comment.
could we add the quotes things like this: rhcosSsh=accessed:NoSchedule
kikisdeliveryservice
left a comment
There was a problem hiding this comment.
Some doc changes.
|
Will fixup PR pending maybe a rebase onto: #291 |
|
@yuqi-zhang: PR needs rebase. DetailsInstructions 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. |
|
This probably can be closed. |
|
/close Superceded by #359 |
|
@yuqi-zhang: Closed this PR. DetailsIn response to this:
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. |
…ort-metric [BUILD-92] add import retry count into metrics
Based on comment from previous PR:
There is still the problem of:
rhcosSsh)cc @abhinavdahiya @ashcrow