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

Proposal: When the edge node goes offline, add pod restart and status query functions for the edge node #5535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luomengY
Copy link
Member

… query functions for the edge node

What type of PR is this?
/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #5504

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@kubeedge-bot kubeedge-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Apr 15, 2024
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign daixiang0 after the PR has been reviewed.
You can assign the PR to them by writing /assign @daixiang0 in a comment when ready.

The full list of commands accepted by this bot can be found 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

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 15, 2024
@luomengY luomengY force-pushed the edgepod_restart_get_proposal branch 2 times, most recently from 67abf66 to e52b0ca Compare April 15, 2024 05:44
Copy link
Contributor

@wbc6080 wbc6080 left a comment

Choose a reason for hiding this comment

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

/kind design

@kubeedge-bot kubeedge-bot added the kind/design Categorizes issue or PR as related to design. label Apr 15, 2024
Copy link
Contributor

@wbc6080 wbc6080 left a comment

Choose a reason for hiding this comment

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

/remove-kind feature

@kubeedge-bot kubeedge-bot removed the kind/feature Categorizes issue or PR as related to a new feature. label Apr 15, 2024
status: implementable
---

# When the edge node goes offline, add pod restart and status query functions for the edge node
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it’s inappropriate to use a long sentence as a feature title. Can you simplify it? Maybe it can be called “Pod offline status query and restart”, for reference only

Copy link
Member Author

Choose a reason for hiding this comment

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

ok!


## Motivation

When the edge node is offline, it is not possible to query the status of the edge node pod and restart the pod of the edge node through kubectl in the cloud. This feature provides support for querying and restarting the pod status of the edge node.
Copy link
Contributor

Choose a reason for hiding this comment

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

The scene in the last sentence is not very clear. Maybe it can be changed to "This feature provides support for querying and restarting the pod status from edge with offline edge node " . You can check whether this statement is correct

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 scene in the last sentence is not very clear. Maybe it can be changed to "This feature provides support for querying and restarting the pod status from edge with offline edge node " . You can check whether this statement is correct

In fact, pods can be queried and restarted both online and offline.

@luomengY luomengY force-pushed the edgepod_restart_get_proposal branch 2 times, most recently from 3438c55 to 7d9d9fa Compare April 15, 2024 10:27
### Goals

- By using the `keadm get pod [flags]` command on edge nodes, the status of pod can be queried.
- By using the `keadm restart pod [flags]` command on edge nodes, pod can be restarted.
Copy link
Collaborator

Choose a reason for hiding this comment

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

My personal opinion. keadm get and restart belong to the same category of operations. I think it's more appropriate to unify them under keadm subcommand, like keadm xxx get/restart. Also it would make it easier for future expanision.
cc @WillardHu @fisherxu @wbc6080

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it may not be very suitable to include extended functions in keadm in the future, such as describe/logs/exec. Future extensions may not only be for pod resources, such as device, etc. So can we try to maintain some command styles of kubectl in the upstream k8s as much as possible?

… query functions for the edge node

Signed-off-by: luomengY <[email protected]>
@luomengY luomengY force-pushed the edgepod_restart_get_proposal branch from 0ea50a0 to 2b35cf6 Compare April 26, 2024 03:57
@luomengY
Copy link
Member Author

add it to v1.17. @Shelley-BaoYue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/design Categorizes issue or PR as related to design. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants