How do i view logs for my Kubernetes Ingress Controller?

I have recently started to learn about Kubernetes and i'm trying understand why my ingress controller is giving a 502 error.

i'm working with google cloud platform. i can see my service of type: LoadBalancer is working if i connect using its static IP address, but it seems i may not have configured my ingress controller correctly because it gives a 502 error.

but it doesn't display any error when i deploy and i cant find any logs for the Ingress so i cant see why a 502 is being displayed.


Solution 1:

On GKE, Ingress logs are in the web console under Stackdriver Logging, under "Cloud HTTP Load Balancer":

enter image description here