You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Butn the DS then goes into crashLoop because it does not translate correctly to iptables. Logs:
Setting up forwarding from port 80 to 10.106.7.233:http/TCP
iptables v1.6.2: Port `http' not valid
Try `iptables -h' or 'iptables --help' for more information.
As kubernetes supports using named targetPorts this should imho be supported by the LB provider :)
The text was updated successfully, but these errors were encountered:
Perhaps more interesting is that targetPort can be a string, referring to the name of a port in the backend Pods. The actual port number assigned to that name can be different in each backend Pod.
To fully handle this Akrobateo should also "watch" the owning resource(s) of the pods where the selector matches and only from there map the name to a port number. This gets tricky fast as in todays Kubernetes setups there might be lot's of different operators and controllers creating pods. IMO it's not really sufficient to just check those name-port mappings from the pods alone as in any given time there might be e.g. a deployment rollout in progress and thus pods with different mappings.
So as you probably found out, the workaround is to use direct port numbers in the service.
Hi,
I tried to create a LoadBalancer with a named port in it
Butn the DS then goes into crashLoop because it does not translate correctly to iptables. Logs:
As kubernetes supports using named targetPorts this should imho be supported by the LB provider :)
The text was updated successfully, but these errors were encountered: