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 prompt to upgrade node or delay before upgrade #7168

Merged
merged 2 commits into from
Jan 18, 2021

Conversation

LuckySB
Copy link
Contributor

@LuckySB LuckySB commented Jan 15, 2021

/kind feature

What this PR does / why we need it:

I want control process of upgrade cluster, and I want to be able to check the work of the updated node, before starting the next update.

Also, sometimes you need to wait a little for all the pods to running, before starting the drain of the next node

Does this PR introduce a user-facing change?:

Add 2 variables to prompt for upgrade (`upgrade_node_confirm`) and to delay the upgrade (`upgrade_node_pause_seconds`), default to `false` and `0seconds`

@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 15, 2021
@k8s-ci-robot k8s-ci-robot requested review from EppO and holmsten January 15, 2021 12:36
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LuckySB

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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 15, 2021
@floryut
Copy link
Member

floryut commented Jan 18, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 18, 2021
@k8s-ci-robot k8s-ci-robot merged commit e3caff8 into kubernetes-sigs:master Jan 18, 2021
seconds: "{{ upgrade_node_pause_seconds }}"
when:
- not upgrade_node_confirm
- upgrade_node_pause_seconds != 0
Copy link
Contributor

Choose a reason for hiding this comment

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

upgrade_node_confirm is a bit useless

Copy link
Contributor

Choose a reason for hiding this comment

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

@champtar Is there some other way to better control rolling updates to allow the workload to recover during the draining process.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have this included in the next release if possible.

LuckySB added a commit to southbridgeio/kubespray that referenced this pull request Feb 2, 2021
)

* Add prompt to upgrade node or delay before upgrade

* add docs
@floryut floryut mentioned this pull request May 11, 2021
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. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

5 participants