google cloud platform – Getting issue with nginx ingress controller

As per this Blog by Patrick Londa, to check the Error: invalid virtual server or virtual server route, you need to utilize the controller logs, the generated configuration file, and check the events for the VirtualServer and VirtualServerRoute resources.

Check Events of VirtualServer and VirtualServerRoute Resources:

You can check events for a VirtualServer resource with this command:

kubectl describe vs <VS-resource-name>

You can check events for a VirtualServerRoute resource with this
command:

kubectl describe vsr <VSR-resource-name>

Similar to checking the events of an Ingress resource, if you are
looking for normal events with the reason AddedOrUpdated to signal
that the configuration was successfully applied.

Refer to this gitlink for more information about VirtualServer and VirtualServerRoute Resources

Read more here: Source link