-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 exec into ingress-nginx-controll pod, when any type of sidecar is injected into the controller pod #9703
allow exec into ingress-nginx-controll pod, when any type of sidecar is injected into the controller pod #9703
Conversation
Add support for --container flag, which sets an explicit container name for exec operations. Defaults to `controller`. Signed-off-by: Jacob Henner <[email protected]>
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Welcome @JacobHenner! |
Hi @JacobHenner. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@JacobHenner it will be a very useful & generally helpful discussion, if this really is a generic problem. And if triaged to be a problem and changes are made to make exec work in controller pod with sidecars, it could help a lot with debugging. On the flip side though, the very fact that the ingress-nginx-controller pod is not like a frontend or a backend application pod, brings in several other considerations. Someone needs to elaborate & describe the small tiny details, with regard to the possibility of any and every possible sidecar that can be injected, including a service-mesh sidecar, and its implications on securing + hardening the controller (and maybe even mitigating perceivable problems). The project itself is in a stabilization phase where features are not being worked on, until the project achieves the stabilization goals. Then the situation is complicated by lack of resources and the increased attention to CVEs & other security/performance related priorities. The PR history has some of that story. Then we have a almost ready implementation of OpenTelemetry for traces and the prometheus support is available since a while. That was FYI. Please wait for other comments. Hence this is not so much as a bug, currently. When a developer engages on this and triaging is complete, more info may come out of this discussion. /remove-kind bug |
@longwuyuan: Those labels are not set on the issue: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retitle allow exec into pod when any sidecar is injected into pod |
/retitle allow exec into ingress-nginx-controll pod, when any type of sidecar is injected into the controller pod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quickly review, looks good
/ok-to-test
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
The This bot removes
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /remove-lifecycle frozen |
We can also use on a probably followup https://kubernetes.io/docs/reference/labels-annotations-taints/#kubectl-kubernetes-io-default-container and make the defaulting to our container more generic. @longwuyuan maybe you want to change it on helm charts :) /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JacobHenner, rikatz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lifecycle active |
What this PR does / why we need it:
Add support for --container flag, which sets an explicit container name for exec operations. Defaults to
controller
.Types of changes
Which issue/s this PR fixes
Fixes #4361
Fixes #4362
Fixes #9702
How Has This Been Tested?
Tested relevant commands against existing installation of the latest ingress-nginx, supplying valid and invalid
--container {container}
options, and omitting the flag entirely.Checklist:
Does my pull request need a release note?
Any user-visible or operator-visible change qualifies for a release note. This could be a:
No release notes are required for changes to the following:
For more tips on writing good release notes, check out the Release Notes Handbook