Skip to content

Commit d59ee4f

Browse files
committed
Merge pull request #3073 from carmstrong/fix-azure_timeout
fix(contrib/azure): bump load balancer timeout to 20 minutes
2 parents 1fff81a + 1eb8fac commit d59ee4f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

contrib/azure/azure-coreos-cluster

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,13 @@ def network_config(subnet_name=None, port='59913', public_ip_name=None):
151151
if subnet_name:
152152
network.subnet_names.append(subnet_name)
153153
if public_ip_name:
154-
network.public_ips.public_ips.append(PublicIP(name=public_ip_name))
154+
ip = PublicIP(name=public_ip_name)
155+
ip.idle_timeout_in_minutes = 20
156+
network.public_ips.public_ips.append(ip)
155157
if args.deis:
156158
# create web endpoint with probe checking /health-check
157159
network.input_endpoints.input_endpoints.append(endpoint_config('web', '80', load_balancer_probe('/health-check', '80', 'http')))
158-
# create builder endpoint with no health check
160+
# create builder endpoint TCP probe check
159161
network.input_endpoints.input_endpoints.append(endpoint_config('builder', '2222', load_balancer_probe(None, '2222', 'tcp')))
160162
return network
161163

0 commit comments

Comments
 (0)