Skip to content

Commit 63921c1

Browse files
committed
Merge pull request #3074 from carmstrong/pr-2864
feat(contrib/ec2): add support for internal ELBs
2 parents d59ee4f + a1eee9b commit 63921c1

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

contrib/ec2/deis.template.json

100644100755
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@
9191
"Default": "true",
9292
"AllowedValues" : [ "true", "false" ],
9393
"ConstraintDescription" : "must be either true or false"
94+
},
95+
"ELBScheme": {
96+
"Description": "Whether to create an internal-only load balancer, or a public-facing one (default)",
97+
"Type": "String",
98+
"Default": "internet-facing",
99+
"AllowedValues" : [ "internet-facing", "internal" ],
100+
"ConstraintDescription" : "must be either 'internet-facing' for public use, or 'internal' for private use"
94101
}
95102
},
96103

@@ -271,6 +278,7 @@
271278
"Type": "AWS::ElasticLoadBalancing::LoadBalancer",
272279
"DependsOn" : "GatewayToInternet",
273280
"Properties": {
281+
"Scheme" : {"Ref": "ELBScheme"},
274282
"HealthCheck": {
275283
"HealthyThreshold": "4",
276284
"Interval": "15",

docs/installing_deis/aws.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Customize cloudformation.json
8080
-----------------------------
8181

8282
Any of the parameter defaults defined in deis.template.json can be overridden by setting the value
83-
in `cloudformation.json`_ like so:
83+
in `cloudformation.json`_. For example, to configure all of the optional settings:
8484

8585
.. code-block:: console
8686
@@ -99,8 +99,13 @@ in `cloudformation.json`_ like so:
9999
{
100100
"ParameterKey": "AssociatePublicIP",
101101
"ParameterValue": "false"
102+
},
103+
{
104+
"ParameterKey": "ELBScheme",
105+
"ParameterValue": "internal"
102106
}
103107
108+
104109
The only entry in cloudformation.json required to launch your cluster is `KeyPair`, which is
105110
already filled out. The defaults will be applied for the other settings.
106111

@@ -175,15 +180,15 @@ start installing the platform.
175180
CloudFormation Updates
176181
----------------------
177182

178-
To use CloudFormation to perform update operations to your stack, there is another script:
183+
To use CloudFormation to perform update operations to your stack, there is another script:
179184
`update_ec2_cluster.sh`_. Depending on the parameters that you have changed, CloudFormation
180185
may replace the EC2 instances in your stack.
181186

182187
The following parameters can be changed without replacing all instances in a stack:
183188

184189
- ``ClusterSize`` - Number of nodes in the cluster. This may launch new instances or terminate
185190
existing instances. If you are scaling down, this may interrupt service. If a container
186-
was running on an instance that was terminated, it will have to be rebalanced onto another
191+
was running on an instance that was terminated, it will have to be rebalanced onto another
187192
node which will cause some downtime.
188193
- ``SSHFrom`` - Locks down SSH access to the Deis hosts. This will update the security
189194
group for the Deis hosts.

0 commit comments

Comments
 (0)