Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Backend Config CRD not applying

I'm facing a bug using the backendconfig CRD on GCP.
 
I deployed a multicluster ingress and multi-cluster service and backendconfig CRD to configure the health check for the Loadbalancer, everything works fine except that GCP is not considering the specifications in the backend config file.
 
 

image.png

 

Above is the config file, but in the GCP console, the path is defined as / and the port is defined as 80, which makes the application fail a health check.
 
I did try to edit the health check from the console to the desired configuration, then the application works fine, but after some few minutes GCP returns to the wrong configuration.
 
 
Thank you for your time.
 
Regards
0 6 2,302
6 REPLIES 6

Hi @SegunRova ,

Your question lack details such as the error message when you mentioned that it returns to the wrong configuration,


@SegunRova wrote:

but after some few minutes GCP returns to the wrong configuration.


or, if you have followed any steps or guides, or any related documentation prior to the ingress creation.

You may try to reconfigure the health check by following this guide regarding health check configuration.
If the console is returning or giving an error message related to the backend config, ingress, etc, you may find the troubleshooting steps on this documentation.

Hi @Marvin_Lucero , thank you for your response, yes I have some couple of documentation I'm following.

https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#backendconfig

https://cloud.google.com/kubernetes-engine/docs/how-to/multi-cluster-ingress#grpc_support

https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#health_checks

https://cloud.google.com/kubernetes-engine/docs/how-to/ingress-configuration#direct_health

Also if you observe my configuration aligns with the above documentation, including the one you sent. There is no specific error message but the health check configuration in the GCP console does not obey the CRD config which cause the health check to fail and the application returns the below error.

SegunRova_0-1685006826421.png

Attached below is what is on the GCP console after applying the CRDs.

SegunRova_1-1685006930144.png

Thank you once again.

Hi @SegunRova Is this issue resolved? I am also facing the same issue.

Hi, @mackvats , yes I got it resolved.

I had to ensure that the container-port corresponds with the health check port

Thanks @SegunRova Issue got resolved.

Make sure it is the container port, by the way. If your application inside the container serves on port 8080, that port needs to go into the backend config. 

Top Labels in this Space