Skip to content

Commit 0955541

Browse files
committed
fix(contrib/azure/azure-coreos-cluster): Make a --nohttps option to disable https endpoint
As per discussion with @timfpark, we should allow the user to disable the creation of an https endpoint.
1 parent 34a2289 commit 0955541

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

contrib/azure/azure-coreos-cluster

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ parser.add_argument('--deis', action='store_true',
5353
help='optional, automatically opens http and controller endpoints')
5454
parser.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

5759
cloud_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

Comments
 (0)