Skip to content

feat: Create container image of utility tools not avialable in production containers #78

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

Merged
merged 32 commits into from
Jun 19, 2025

Conversation

mrajagopal
Copy link
Collaborator

Proposed changes

  • This PR addresses issue 42 to collect data from within the nginx-ingress container
  • Due to security constraints, certain tools such as curl are not included in the release images of nginx-ingress thus requiring a dedicated container with such tools
  • This PR creates such an image (e.g. mrajagopal/f5-utils:latest) that can then be attached to a target container ephemerally for troubleshooting the target container: e.g. kb debug -it nginx-ingress-pod-6dc8b9dbdb-4c9ck --image=mrajagopal/f5-utils:latest --target=nginx-ingress -c f5-debugger-"${RANDOM}"
  • These tools include curl, netcat, iproute2, iperf, bash
  • The Makefile currently creates an image for linux/amd64 systems

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING guide
  • I have proven my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have ensured the README is up to date
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch on my own fork

…tion containers

* The container can then be attached to a target container ephermerally for troubleshooting the target container
* These tools include curl, netcat, iproute2, iperf, bash
* The Makefile currently creates an image for linux/amd64 systems
@mrajagopal mrajagopal requested a review from a team as a code owner November 20, 2024 21:38
* Changed order to have login to ghcr before image build
mrajagopal and others added 7 commits June 17, 2025 12:07
* tweak memory_stats.sh to fail on first error
* Also add build tags based on release tag
This is expected to allow release the debug container image independent of the supportpkg krew plugin
This is expected to allow release of the supportpkg krew plugin independent of the  debug container image
dareste
dareste previously approved these changes Jun 18, 2025
@mrajagopal mrajagopal added the enhancement New feature or request label Jun 18, 2025
@mrajagopal mrajagopal self-assigned this Jun 18, 2025
@mrajagopal mrajagopal requested a review from dareste June 18, 2025 22:48
@dareste dareste merged commit 50f1c34 into main Jun 19, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collect pod specific process information such as ps output, memory etc
2 participants