@@ -53,6 +53,8 @@ parser.add_argument('--deis', action='store_true',
5353 help = 'optional, automatically opens http and controller endpoints' )
5454parser .add_argument ('--data-disk' , action = 'store_true' ,
5555 help = 'optional, attaches a data disk to each VM' )
56+ parser .add_argument ('--nohttps' , action = 'store_true' ,
57+ help = 'optional, disables the creation of the https load balanced endpoint' )
5658
5759cloud_init_template = """#cloud-config
5860
@@ -159,7 +161,8 @@ def network_config(subnet_name=None, port='59913', public_ip_name=None):
159161 if args .deis :
160162 # create web endpoint with probe checking /health-check
161163 network .input_endpoints .input_endpoints .append (endpoint_config ('web' , '80' , load_balancer_probe ('/health-check' , '80' , 'http' )))
162- network .input_endpoints .input_endpoints .append (endpoint_config ('https' , '443' , load_balancer_probe (None , '443' , 'tcp' )))
164+ if not args .nohttps :
165+ network .input_endpoints .input_endpoints .append (endpoint_config ('https' , '443' , load_balancer_probe (None , '443' , 'tcp' )))
163166 # create builder endpoint TCP probe check
164167 network .input_endpoints .input_endpoints .append (endpoint_config ('builder' , '2222' , load_balancer_probe (None , '2222' , 'tcp' )))
165168 return network
0 commit comments