Skip to content

Commit fa17b49

Browse files
committed
Merge pull request #3951 from mboersma/doc-proxy-proto-upgrade
docs(router+upgrading): clarify EC2 PROXY protocol use
2 parents 990b123 + 89c0b47 commit fa17b49

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

docs/customizing_deis/router_settings.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ Deis. Specifically, ensure that it sets and reads appropriate etcd keys.
9999

100100
.. _`stock router image`: https://github.com/deis/deis/tree/master/router
101101

102+
103+
.. _proxy_protocol:
104+
102105
PROXY Protocol
103-
---------------
106+
--------------
107+
104108
PROXY is a simple protocol supported by nginx, HAProxy, Amazon ELB, and others. It provides a method
105109
to obtain information about the original requests IP address sent to a load
106110
balancer in front of Deis :ref:`router`.

docs/managing_deis/ssl-endpoints.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@ Installing SSL on a Load Balancer
2222
---------------------------------
2323

2424
On most cloud-based load balancers, you can install a SSL certificate onto the load balancer
25-
itself. This is the recommended way of enabling SSL onto a cluster, as any communication inbound to
26-
the cluster will be encrypted while the internal components of Deis will still communicate over
27-
HTTP.
25+
itself. Any communication inbound to the cluster will be encrypted while the internal components
26+
of Deis will still communicate over HTTP.
27+
28+
.. note::
29+
30+
On Amazon EC2, Deis enables the :ref:`PROXY protocol <proxy_protocol>` by default, requiring
31+
installation of :ref:`SSL on the Deis routers <router_ssl>`, as described below.
32+
Disable the PROXY protocol with ``deisctl config router rm proxyProtocol`` and change
33+
existing targets and health checks from TCP to HTTP to terminate SSL connections at an
34+
Amazon ELB instead.
2835

2936
To enable SSL, you will need to open port 443 on the load balancer and forward it to port 80 on the
3037
routers. For EC2, you'll also need to add port 443 in the security group settings for your load

docs/managing_deis/upgrading-deis.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,24 @@ Finally, update ``deisctl`` to the new version and reinstall:
5353
In-place upgrades incur approximately 10-30 minutes of downtime for deployed applications, the router mesh
5454
and the platform control plane. Please plan your maintenance windows accordingly.
5555

56+
.. note::
57+
58+
When upgrading an Amazon EC2 cluster older than Deis v1.6, a :ref:`migration_upgrade` is
59+
preferable.
60+
61+
On Amazon EC2, Deis enables the :ref:`PROXY protocol <proxy_protocol>` by default.
62+
If an in-place upgrade is required, run ``deisctl config router set proxyProtocol=1``,
63+
enable PROXY protocol for ports 80 and 443 on the ELB, add a ``TCP 443:443`` listener, and
64+
change existing targets and health checks from HTTP to TCP.
65+
5666
Upgrade Deis clients
5767
^^^^^^^^^^^^^^^^^^^^
5868
As well as upgrading ``deisctl``, make sure to upgrade the :ref:`deis client <install-client>` to
5969
match the new version of Deis.
6070

6171

72+
.. _migration_upgrade:
73+
6274
Migration Upgrade
6375
-----------------
6476

0 commit comments

Comments
 (0)