I have a specific use case that I cannot solve.
Typical gcloud setup:
K8S Cluster
Gcloud storage container
Gcloud balancer
I managed to get my domain https://cdn.foobar.com/uploads/ to point to the backend for google storage without any problems: I can access the files. Its a backend service that fails.
I would like the CDN act as a cache when an HTTP request hits it, for example https://cdn.foobar.com/assets/x.jpg , if it does not have a copy of the asset, it should request another https://foobar.com/assets/x.jpg domain https://foobar.com/assets/x.jpg .
I realized that there were backend-service load balancers for this. (Right?)
backend-service points to a group of k8s cluster instances and requires a port. I guessed that I need to allow the firewall to expose Nodeport my web application service so that the loadbalancer can request it.
Cdn cloud


Load balancing
Failure health checks.

The backend service points to a group of k8s cluster instances and requires that some ports (80 by default) 80 fail. I guessed that I need to allow the firewall to expose 32231 Nodeport my web application service so that the loadbalancer can request it. This has not succeeded since 502.
?> kubectl describe svc Name: backoffice-service Namespace: default Labels: app=backoffice Selector: app=backoffice Type: NodePort IP: 10.7.xxx.xxx Port: http 80/TCP NodePort: http 32231/TCP Endpoints: 10.4.xx:8500,10.4.xx:8500 Session Affinity: None No events.

At that moment, I ran out of ideas. Any hints in the right direction would be greatly appreciated.
source share