-
Notifications
You must be signed in to change notification settings - Fork 369
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
Unexpected port number increase in Standalone mode #4981
Comments
hey @dshatokhin you need to set useListenerPortAsContainerPort: true https://gateway.envoyproxy.io/docs/api/extension_types/#envoyproxykubernetesprovider in the EnvoyProxy API to solve your use case |
Oops, I missed this option ... |
Reopen this - we may want to set this as true by default in the host mode. |
It works, thanks for help! I now think there is a room for improvement in the docs and codebase, because I completely overlooked any settings for
Given the experimental status of standalone mode it's totally understandable |
Fixes: envoyproxy#4981 Signed-off-by: Arko Dasgupta <[email protected]>
thanks for re flagging this @zhaohuabing, my suggestion is a workaround, this should work seamlessly in standalone mode, raised #5027 to address it |
Fixes: envoyproxy#4981 Signed-off-by: Arko Dasgupta <[email protected]>
* fix: dont shift listener ports for Standalone mode Fixes: envoyproxy#4981 Signed-off-by: Arko Dasgupta <[email protected]> * test Signed-off-by: Arko Dasgupta <[email protected]> * fix lint Signed-off-by: Arko Dasgupta <[email protected]> --------- Signed-off-by: Arko Dasgupta <[email protected]> (cherry picked from commit 84f2ad2) Signed-off-by: Huabing Zhao <[email protected]>
Description:
I'm trying to run
envoy-gateway
in standalone mode inside docker container with host network.I've created
Gateway
resource with port80
:But
envoy-gateway
logs say it runsenvoy
with port10080
:I found this in internal/gatewayapi/helpers.go:
Both
minEphemeralPort
andwellKnownPortShift
areconst
so I can't change this behavior via settings.The idea to run less privileged container is nice and I see how in
kubernetes
cluster it will be working as expected in almost all situations but in my case (host network) it means I unable to useenvoy-gateway
with the ports I need and I was not expecting ports will be changed to something else.Should it be available as some sort of a setting?
The text was updated successfully, but these errors were encountered: