HTTPS requests for GKE Ingress ERR_TIMEDOUT

8/21/2020

I have a microservice architecture (implemented in Spring Boot) deployed in Google Kubernetes Engine. For this microservice architecture I have setup the following:

  • domain: comanddev.tk (free domain from Freenom) enter image description here
  • a certificate for this domain
  • the following Ingress config: enter image description here

The problem is that when I invoke an URL that I know it should be working https://comanddev.tk/customer-service/actuator/health, the response I get is ERR_TIMEDOUT. I checked Ingress Controller and I don't receive any request in the ingress although URL forwarding is set.

Update: I tried to set a "glue record" like in the following picture and the response I get is that the certificate is not valid (i have certificate for comanddev.tk not dev.comanddev.tk) and I get 401 after agreeing to access unsecure url. enter image description here

-- 2dor
dns
google-kubernetes-engine
https
kubernetes
kubernetes-ingress

1 Answer

9/9/2020

I've digged a bit into this.

As I mentioned when you $ curl -IL http://comanddev.tk/customer-service/actuator/health you will received nginx ingress response.

As domain intercepts the request and redirect to the destination server I am not sure if there is point to use TLS.

I would suggest you to use nameserver instead of URL Forwarding, just use IP of your Ingress. In this option you would redirect request to your Ingress. When you are using Port Forwarding you are using Freenom redirection and I am not sure how its handled on their side.

-- PjoterS
Source: StackOverflow