feat(QOV-1954): add --ephemeral flag with clone/debug modes to qovery shell#652
Merged
Conversation
…mage When --ephemeral is passed, qovery shell creates a new temporary pod using the service's image and env vars instead of connecting to an existing pod. The pod is automatically deleted when the session ends. Depends on: rust-backend feat/ephemeral-shell (new /shell/ephemeral endpoint)
erebe
approved these changes
Jun 2, 2026
Resource overrides only apply to clone mode; debug injects a container into an existing pod and ignores them. Warn instead of silently dropping.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira: https://qovery.atlassian.net/browse/QOV-1954
Summary
--ephemeralflag toqovery shell--modeflag (cloneordebug) to control the ephemeral behavior--cpuand--memoryflags to override resource limits on the clone pod--mode clone(default): spawns a new isolated pod from the service image (Heroku-style, HIPAA-safe)--mode debug: injects an ephemeral container into an existing running pod (kubectl-debug style, shares network/PID namespace)--modeis set without--ephemeralUsage
Depends on
rust-backend MR !635 must be merged and deployed first: https://gitlab.com/qovery/backend/rust-backend/-/merge_requests/635
Test plan
qovery shell(no flag) -- verify existing behavior unchangedqovery shell --ephemeral --mode clone-- verify new pod spawns and is deleted on exitqovery shell --ephemeral --mode clone-- pod deleted on Ctrl+Cqovery shell --ephemeral --mode clone --memory 2Gi-- verify pod starts with overridden memoryqovery shell --ephemeral --mode debug-- verify ephemeral container injected into existing podqovery shell --ephemeral --mode clone --command python,manage.py,shell_plus-- custom commandqovery shell --mode clone(without --ephemeral) -- verify warning printed, normal shell opened--ephemeral --mode clone