Engine
- there is some service with exposed port of the Node port type
I want to create HTTP GET /actuator/health health-check for this service but it everithing fail. What to do?
What I do already:
1. I create service in GKE with Node port type
2. I create firewall rule
Action on match
Allow
Targets
Target tags
dev-target
dev-target-proxy
Source filters
IP ranges
35.191.0.0/16
130.211.0.0/22
<subnet for the external IP>
Protocols and ports
tcp:<Node port>
tcp:<Exposed port>
udp:<Node port>
udp:<Exposed port>
3. I create load balancer what uses the target and health check.
So, there was trouble with the firewall. Healtcheck didn't have access to network because of target. When I handed down healtheck in the external rule, then everything became working.
Обсуждают сегодня