-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat: pods can have hostPorts without hostNetwork #3468
Conversation
|
Welcome @gregorycuellar! |
This appears to be incorrect. In many CNIs, connections to non-host-network pods would need to go to the pod IP, not the node IP. |
@johngmyers can you explain ? What's the point of having an hostPort and send traffic to the Pod IP ? If you can send the traffic directly to the Pod IP, you don't need hostPorts. Hostports and hostnetwork are two separated concepts, which ( as far as I know ) are not linked together. I don't know all CNIs so maybe there are exceptions, I don't know about. |
In CNIs, such as the AWS VPC CNI, that don't use an overlay network you can send traffic to the pod IP. This PR simply removes the check, so will create records for pods that don't have any hostPorts. It also ignores the |
If you want to extend the pod source's support for non-host-network pods, you will likely need to handle them as a separate case. |
I think, I understood the case you are mentioning. For me, it was covered as you have the possibility to have internal hostname ( which point to pod IP ) and hostname ( to node IP ). Without the PR :
With the PR :
I will try, to rework the PR, to have :
|
#3174 is similar
|
I concur with the proposed semantics of May 7. |
I believe if there are multiple ports it should use the union of all hostIPs if said union is non-empty. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
@gregorycuellar Wdyt of #3174 ? Would this solve your issue ? If not, do you think you can rebase and fix tests ? |
d900018
to
9cd124d
Compare
@gregorycuellar: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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-sigs/prow repository. I understand the commands that are listed here. |
9cd124d
to
ab7f5e2
Compare
@mloiseleur No, with 3174, it's still not possible to Node IP if hostNetwork is not defined. ( cf L103 ) PR has been rebased and tests fixed. |
- incorporated changes from PR kubernetes-sigs#3468 to allow for arbitrary annotations to be used no matter the hostNetwork property's value - updated docs to make clear how the annotations are used for pods
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
@mloiseleur do you think it can be merged or should it be abandoned ? |
We are discussing this pod feature with the other maintainers. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. 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-sigs/prow repository. |
/remove-lifecycle rotten |
@jcralbino: You can't reopen an issue/PR unless you authored it or you are a collaborator. 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-sigs/prow repository. |
- incorporated changes from PR kubernetes-sigs#3468 to allow for arbitrary annotations to be used no matter the hostNetwork property's value - updated docs to make clear how the annotations are used for pods
- incorporated changes from PR kubernetes-sigs#3468 to allow for arbitrary annotations to be used no matter the hostNetwork property's value - updated docs to make clear how the annotations are used for pods
Description
Pods can have hostPorts without hostNetwork.
I propose to remove the check that prevent checking annotations on pods that are not on hostNetwork.
Checklist