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

How to exec on pod #16

Open
BlueprintCEO opened this issue Jul 8, 2024 · 1 comment
Open

How to exec on pod #16

BlueprintCEO opened this issue Jul 8, 2024 · 1 comment

Comments

@BlueprintCEO
Copy link

It would be a nice example how to exec on a existing pod and run a curl from within it

Something like the following command :

kubectl exec -n nice_namespace nice_pod-8447f7cc77-jxz7d -it -- /bin/bash

@iximiuz
Copy link
Owner

iximiuz commented Jul 9, 2024

Yeah, it's been on my list for a while :) I should definitely come up with a minimal possible example of kubect exec-like functionality. Meanwhile, you can check this piece of code - it's doing pretty much that https://github.com/iximiuz/cdebug/blob/main/cmd/exec/exec_kubernetes.go.

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

No branches or pull requests

2 participants