gcloud.rst
changeset 2471 6164ab8d6b1a
parent 2470 6815c2cba7a1
child 2472 68f8ff9f6c26
equal deleted inserted replaced
2470:6815c2cba7a1 2471:6164ab8d6b1a
     7 =============
     7 =============
     8 
     8 
     9 https://cloud.google.com/compute/docs/reference/rest/v1/urlMaps
     9 https://cloud.google.com/compute/docs/reference/rest/v1/urlMaps
    10   URL map API.
    10   URL map API.
    11 
    11 
       
    12 Health check
       
    13 ============
       
    14 
       
    15 List health checks::
       
    16 
       
    17   gcloud compute health-checks list --format=yaml
       
    18 
       
    19 In order for LB to function you need to define health checks. They run outside of intranet so
       
    20 firewall rules have to be applied to VMs for checks to succeed::
       
    21 
       
    22   gcloud compute firewall-rules create fw-allow-health-check \
       
    23     --network=default \
       
    24     --action=allow \
       
    25     --direction=ingress \
       
    26     --source-ranges=130.211.0.0/22,35.191.0.0/16 \
       
    27     --target-tags=allow-health-check \
       
    28     --rules=tcp:80
       
    29 
       
    30 https://cloud.google.com/load-balancing/docs/health-checks
       
    31   Creating health checks & magical subnets for FW rules.
       
    32