-
Notifications
You must be signed in to change notification settings - Fork 303
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
Invalid value for field 'namedPorts[*].port': '0' #75
Comments
You probably have an ingress referencing a service that's not type NodePort. It may not be the newly added ingress, it could be any GCE ingress. |
You where right, it wasn't even the ingress I just created, it was another one I lost track of. Thanks for the help. Better errors would be nice though 😬 |
I was able to solve it by adding an annotation to disable the Google LB for my ingress.
http://blog.chronos-technology.nl/post/disabling-gke-load-balancer-in-kubernetes/ |
Yes. kubernetes.io/ingress.class: nginx can handle services that are exposed by ClusterIp. We have it working in production |
@ddehghan I definitely tried that in GKE with no luck, I'm having to use a dynamic IP on a node, which changes every k8s update. Are you sure you're using cluster ip and not node ip? |
Here is my settings. nginx-ingress-controller is deployed in the cluster and gets the traffic from the External Load balancer on GKE. We dont expose our pods to the GCE ingress. We just use it to bring the traffic to our own nginx-ingress. With the settings below the traffic gets routed correctly. But we still see this error
I am pretty sure this is just a bug. I deleted the ingress and recreated it and the error went away.
|
I know everyone is going to love this, but the way I was able to fix this was to delete and reinstall the NGINX Ingress controller itself. Now I'm using ClusterIP for my service and the ingress can assign addresses to it! This is using |
@Freyert are you on GKE? I suspect their firewalls make this impossible |
I'm trying to create a new ingress controller but I'm getting this error:
Then I checked the other ingresses, they still work but I'm getting the same exact error. The new ingress does not work at all.
I found this answer but I have not port0 in my
ports
. I notice I have exactly 12 named ports in my instance group, and I'm guessing the arraynamedPorts
is a zero-based so accessing the 12 element might be causing the issue.I'm not exactly sure what triggered it, but I updated to 1.8.2 recently.
This is my ingress
Any ideas?
it may be related to #43
The text was updated successfully, but these errors were encountered: