Skip to content

Conversation

tarabrind
Copy link
Member

@tarabrind tarabrind commented May 30, 2025

Add a wrapper for the kubectl debug command in the form of the d8 k debug command, which runs the debug-contaier built in DKP.

# d8 k debug --help
Debug cluster resources using interactive debugging containers.
          <gap>
Options:
          <gap>
    --image='':
	Container image to use for debug container. If not specified, the platform's recommended image will be used.
# d8 k debug -n d8-cni-cilium agent-g6bg2 -it -- bash
Using debug container image: dev-registry.deckhouse.io/sys/deckhouse-oss@sha256:c8491f461738f32ac3a40338b031421978b8a40e8ca2c51ee8ba9387462c6b23
Defaulting debug container name to debugger-xjst2.
If you don't see a command prompt, try pressing enter.
bash-5.2#
# d8 k debug -n d8-cni-cilium agent-g6bg2 -it --image=busybox -- sh
Defaulting debug container name to debugger-q75jt.
If you don't see a command prompt, try pressing enter.
/ #

Related PR in Deckhouse: deckhouse/deckhouse#13001

@tarabrind tarabrind requested a review from apolovov May 30, 2025 14:50
@tarabrind tarabrind marked this pull request as ready for review May 30, 2025 14:59
@tarabrind tarabrind requested review from name212 and mvasl as code owners May 30, 2025 14:59
@tarabrind tarabrind force-pushed the debug-command-wrapper branch from 3279b9d to 52cba10 Compare June 17, 2025 07:30
Signed-off-by: Denis Tarabrin <[email protected]>
Signed-off-by: Denis Tarabrin <[email protected]>
@tarabrind tarabrind force-pushed the debug-command-wrapper branch from d0a5612 to 08c0543 Compare June 27, 2025 14:40
@tarabrind tarabrind requested a review from mvasl June 27, 2025 14:46
Signed-off-by: Denis Tarabrin <[email protected]>
@tarabrind tarabrind force-pushed the debug-command-wrapper branch from b1fb7ec to e3448b9 Compare August 28, 2025 15:56
@tarabrind tarabrind requested a review from mvasl August 28, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants