[Bug] [Operator] [Controller] [Service] | Ports without name are ignored #463
Labels
bug
Something isn't working
good first issue
Good for newcomers
P2
Important issue, but not time critical
Milestone
Search before asking
KubeRay Component
ray-operator
What happened + What you expected to happen
Issue
If we create a new
rayclusters.ray.io
and we set in the headnode the following optionsThe ray operator will create the deployment but it will not include in the headnode kubernetes service the above ports. In turn, this leads to workers being unable to communicate with the head node and timing out trying to connect to a non-existing port.
If however we use a port names, then the service will be updated with the right ports
What should happen
The crd should validate that the container ports have a valid name, or the operator should reject crd and throw an error instead of spawning the pods.
Reproduction script
Create or edit a
rayclusters.ray.io
and add in the headnode some ports without a name, e.g.The cluster will appear to be ok, but what will actually happen is workers starting and terminating after timing out
Anything else
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: