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

Allow cycling of pods (permission consideration needed) #470

Open
adam-defenseunicorns opened this issue Oct 18, 2024 · 0 comments
Open
Labels
design needed enhancement New feature or request

Comments

@adam-defenseunicorns
Copy link

adam-defenseunicorns commented Oct 18, 2024

Is your feature request related to a problem? Please describe

There's often a need to cycle (restart) pods for various reasons, such as applying configuration changes, clearing memory leaks, or troubleshooting issues. Currently, Runtime lacks a built-in feature to easily perform this operation, requiring users to switch between our tool and kubectl or other Kubernetes management interfaces. This context switching reduces efficiency and can lead to errors.

Describe the solution you'd like

  • Given a Kubernetes cluster is connected to Runtime
  • When a user selects one or more pods in the tool's interface
  • Then the user should have an option to "Cycle Pods"
  • When the user chooses to cycle the selected pod(s)
  • Then Runtime Should
  1. Gracefully terminate the selected pod(s)
  2. Wait for Kubernetes to create new pod(s) to replace the terminated one(s)
  3. Verify that the new pod(s) are in a running state
  4. Provide real-time feedback on the cycling process
  5. Log the action

Describe alternatives you've considered

  • Providing a direct link or documentation for kubectl commands for pod cycling. This doesn't solve the context switching problem.

Additional context

  • Consideration for the roles (RBAC) and permissions for who can execute any changes to the cluster need to be taken into account. This may warrant a design doc or ADR.
@adam-defenseunicorns adam-defenseunicorns changed the title Allow cycling of pods in Runtime Allow cycling of pods in Runtime (consideration needed) Oct 18, 2024
@adam-defenseunicorns adam-defenseunicorns changed the title Allow cycling of pods in Runtime (consideration needed) Allow cycling of pods in Runtime (permission consideration needed) Oct 18, 2024
@adam-defenseunicorns adam-defenseunicorns changed the title Allow cycling of pods in Runtime (permission consideration needed) Allow cycling of pods (permission consideration needed) Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design needed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant