github.com/openshift/installer@v1.4.17/upi/gcp/02_lb_ext.py (about) 1 def GenerateConfig(context): 2 3 resources = [{ 4 'name': context.properties['infra_id'] + '-cluster-public-ip', 5 'type': 'compute.v1.address', 6 'properties': { 7 'region': context.properties['region'] 8 } 9 }, { 10 # Refer to docs/dev/kube-apiserver-health-check.md on how to correctly setup health check probe for kube-apiserver 11 'name': context.properties['infra_id'] + '-api-http-health-check', 12 'type': 'compute.v1.httpHealthCheck', 13 'properties': { 14 'port': 6080, 15 'requestPath': '/readyz' 16 } 17 }, { 18 'name': context.properties['infra_id'] + '-api-target-pool', 19 'type': 'compute.v1.targetPool', 20 'properties': { 21 'region': context.properties['region'], 22 'healthChecks': ['$(ref.' + context.properties['infra_id'] + '-api-http-health-check.selfLink)'], 23 'instances': [] 24 } 25 }, { 26 'name': context.properties['infra_id'] + '-api-forwarding-rule', 27 'type': 'compute.v1.forwardingRule', 28 'properties': { 29 'region': context.properties['region'], 30 'IPAddress': '$(ref.' + context.properties['infra_id'] + '-cluster-public-ip.selfLink)', 31 'target': '$(ref.' + context.properties['infra_id'] + '-api-target-pool.selfLink)', 32 'portRange': '6443' 33 } 34 }] 35 36 return {'resources': resources}