Skip to content

docs: add comprehensive keadm ctl command documentation#766

Open
abhicodes11 wants to merge 2 commits intokubeedge:masterfrom
abhicodes11:feature/improve-keadm-ctl-documentation
Open

docs: add comprehensive keadm ctl command documentation#766
abhicodes11 wants to merge 2 commits intokubeedge:masterfrom
abhicodes11:feature/improve-keadm-ctl-documentation

Conversation

@abhicodes11
Copy link

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Adds comprehensive keadm ctl command documentation to the KubeEdge website with examples, troubleshooting guide, and best practices.

Changes Made:

  • Added new keadm-ctl.md with complete command reference for all 8 ctl commands
  • Updated install-with-keadm.md to reference the new documentation

Which issue(s) this PR fixes:

#6629 kubeedge/kubeedge repository

Does this PR introduce a user-facing change?:

Added comprehensive keadm ctl command documentation to improve user experience.

Related PR:

Complements PR #6636 in kubeedge/kubeedge repositor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What is the current behavior?

Website lacks comprehensive keadm ctl command documentation.

What is the new behavior (if this is a feature change)?

Added complete keadm ctl command documentation with examples and troubleshooting guide.

Does this PR introduce a breaking change?

No

Signed-off-by: Abhi <abhicodes11@users.noreply.github.com>
@kubeedge-bot kubeedge-bot added the kind/documentation Categorizes issue or PR as related to documentation. label Feb 9, 2026
@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 kevin-wangzefeng after the PR has been reviewed.
You can assign the PR to them by writing /assign @kevin-wangzefeng in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details 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
Copy link
Collaborator

Welcome @abhicodes11! It looks like this is your first PR to kubeedge/website 🎉

@gemini-code-assist
Copy link

Summary of Changes

Hello @abhicodes11, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the KubeEdge documentation by introducing a dedicated and exhaustive guide for the keadm ctl commands. The goal is to empower users with clear instructions and practical examples for effective management and troubleshooting of edge nodes and pods, thereby improving the overall user experience and operational efficiency within KubeEdge environments.

Highlights

  • New Keadm CTL Command Documentation: A new, comprehensive documentation page for keadm ctl commands has been added. This page details 8 subcommands (get, describe, logs, exec, restart, confirm, unhold-upgrade, edit) with examples, prerequisites, common workflows, troubleshooting guides, and best practices for managing edge nodes and pods.
  • Integration with Existing Documentation: The install-with-keadm.md file has been updated to include a new section that introduces keadm ctl commands and provides a direct link to the newly created keadm-ctl.md documentation, ensuring users can easily find this critical information.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • docs/setup/install-with-keadm.md
    • Added a new section 'Managing Edge Nodes with CTL Commands' to introduce keadm ctl functionality.
    • Included a link to the new keadm-ctl.md page for detailed command reference.
  • docs/setup/keadm-ctl.md
    • New file added, providing comprehensive documentation for keadm ctl commands.
    • Includes an overview of 8 subcommands: get, describe, logs, exec, restart, confirm, unhold-upgrade, and edit.
    • Details prerequisites, command syntax, and practical examples for each subcommand.
    • Features sections on common workflows (troubleshooting, upgrades, monitoring), troubleshooting common issues, debug commands, and best practices.
    • Explains the integration of keadm ctl with kubectl and lists additional resources.
Activity
  • The pull request is categorized as a documentation type (/kind documentation).
  • It addresses and fixes issue #6629 in the kubeedge/kubeedge repository.
  • The changes introduce a user-facing improvement by adding comprehensive documentation.
  • This PR complements PR #6636 in the kubeedge/kubeedge repository.
  • Documentation has been added/updated as per the project guidelines.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 9, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds comprehensive documentation for keadm ctl commands, which is a great addition for users. The new documentation is well-structured and covers all subcommands with examples. I've made a few suggestions to improve clarity and completeness in the command references. Overall, this is a valuable contribution to the KubeEdge documentation.

The `keadm ctl` command includes 8 subcommands for edge node management:

- `get` - Get information about edge resources
- `describe` - Describe edge resources in detail

Choose a reason for hiding this comment

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

medium

There are two trailing spaces on this line which might be unintentional. Please remove them for consistent formatting across the document.

Suggested change
- `describe` - Describe edge resources in detail
- `describe` - Describe edge resources in detail

Get information about edge resources.

```bash
# Get all edge pods

Choose a reason for hiding this comment

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

medium

The description 'Get all edge pods' is ambiguous because flags like --all-edge-nodes or --node are required to specify which pods to get, as shown in the examples. Please update the comment to clarify this.

Suggested change
# Get all edge pods
# Get pods on edge nodes (specify with --all-edge-nodes or --node)

Comment on lines +145 to +152
# Restart an edge pod
keadm ctl restart <pod-name> --node <edge-node>

# Restart multiple pods
keadm ctl restart <pod1> <pod2> --node <edge-node>

# Force restart
keadm ctl restart <pod-name> --node <edge-node> --force

Choose a reason for hiding this comment

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

medium

The command reference for restart is missing the option to restart pods by deployment, which is a useful feature shown in the examples. Please add the --deployment flag usage to this reference section for completeness.

Suggested change
# Restart an edge pod
keadm ctl restart <pod-name> --node <edge-node>
# Restart multiple pods
keadm ctl restart <pod1> <pod2> --node <edge-node>
# Force restart
keadm ctl restart <pod-name> --node <edge-node> --force
# Restart an edge pod
keadm ctl restart <pod-name> --node <edge-node>
# Restart multiple pods
keadm ctl restart <pod1> <pod2> --node <edge-node>
# Restart all pods in a deployment
keadm ctl restart --deployment <deployment-name> --node <edge-node>
# Force restart
keadm ctl restart <pod-name> --node <edge-node> --force

- Fix broken links in Chinese build by using absolute paths
- Update relative links to work with i18n translations
- Ensure all links resolve correctly in both English and Chinese

Signed-off-by: Abhi <abhicodes11@users.noreply.github.com>
Comment on lines +337 to +342
## Managing Edge Nodes with CTL Commands

After installing KubeEdge, you can use `keadm ctl` commands to manage edge nodes and pods. These commands provide comprehensive control over edge resources, including viewing logs, executing commands, restarting pods, and managing upgrades.

For detailed documentation on all available `keadm ctl` commands, see [Keadm CTL Commands](./keadm-ctl.md).

Copy link
Contributor

Choose a reason for hiding this comment

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

i am not necessarily against this PR, but i do not think it would be ideal to introduce keadm ctl command all the sudden here... what about the other sub-commands? i would say it would be better if we have dedicated section to explain the keadm sub-commands and link it to here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/documentation Categorizes issue or PR as related to documentation. 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.

3 participants