Environment variable to set listening port
What would you like to be added:
I'd like to be able to set which port the application listens on, instead of being fixed to 5000.
Why is this needed:
It would add flexibility in allowing me to re-use already open ports as opposed to having to open a new one.
Changing the port would require more than an ENV var. It would require changing the service as well. Can you provide more information on the scenario you have in mind? If I have more context, I may be able to better understand your needs and come up with another solution.
Hey @phenixblue, so this came out of https://github.com/phenixblue/imageswap-webhook/issues/82, where I had to allow inbound access on the port the pod was listening on (5000) to get the webhook to work in AWS EKS.
As such, I'd like to be able to configure which port the application listens on (and the targetPort on the svc) to re-use already open ports.
Maybe I'm not familiar with something EKS is doing. Does it not target the port on the ImageSwap Service? The way I understand things is the Webhook Configuration should point at the Service/Port and not the pod/port.