Skip to content

Commit 4070755

Browse files
author
Matthew Fisher
committed
Merge pull request #3447 from sedouard/add_https
feat(contrib/azure/azure-coreos-cluster): add an https enddpoint on c… …reation
2 parents ae7adc1 + 0955541 commit 4070755

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

contrib/azure/azure-coreos-cluster

Lines changed: 4 additions & 0 deletions
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,6 +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')))
164+
if not args.nohttps:
165+
network.input_endpoints.input_endpoints.append(endpoint_config('https', '443', load_balancer_probe(None, '443', 'tcp')))
162166
# create builder endpoint TCP probe check
163167
network.input_endpoints.input_endpoints.append(endpoint_config('builder', '2222', load_balancer_probe(None, '2222', 'tcp')))
164168
return network

0 commit comments

Comments
 (0)