@@ -100,6 +100,72 @@ Retire the old cluster
100100^^^^^^^^^^^^^^^^^^^^^^
101101Once all applications have been validated, the old cluster can be retired.
102102
103+ Deploying a new Cluster with External Components
104+ ------------------------------------------------
105+
106+ If you're upgrading from a cluster where you have outsourced your components outside of
107+ Deis (such as migrating deis-database onto Amazon Relational Database Services), you have
108+ the benefit of preserving existing data, but you still need to update DNS records and the
109+ like.
110+
111+ Provision Servers
112+ ^^^^^^^^^^^^^^^^^
113+
114+ Provision the CoreOS cluster as you normally would with any release of Deis. However, do
115+ not install any components onto this cluster. We need to point etcd to the components
116+ which are running outside of the cluster.
117+
118+ Export Etcd Keys
119+ ^^^^^^^^^^^^^^^^
120+
121+ To migrate over, start by pointing the new cluster at the old cluster's endpoints:
122+
123+ .. code-block :: console
124+
125+ $ etcdctl set /deis/database/host pqsl.example.org
126+ $ etcdctl set /deis/database/port 1234
127+ ...
128+
129+ Next, you'll also want to migrate over the application directories:
130+
131+ $ etcdctl mkdir /deis/services/appname
132+
133+ Start new Components
134+ ^^^^^^^^^^^^^^^^^^^^
135+
136+ The Makefile takes care of this logic for us:
137+
138+ .. code-block :: console
139+
140+ dev $ make run
141+
142+ Re-deploy Apps to the new Cluster
143+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
144+
145+ With this process, re-deploying apps couldn't be easier. Just scale the processes down to
146+ 0 for each application, then scale back up.
147+
148+ .. code-block :: console
149+
150+ $ deis scale --app example web=0
151+ $ deis scale --app example web=3
152+
153+ .. note ::
154+
155+ Support for ``deis ps:restart `` is being tracked in `#467 `_.
156+
157+ Test applications
158+ ^^^^^^^^^^^^^^^^^
159+
160+ Test to make sure applications work as expected on the new Deis cluster.
161+
162+ Update DNS records
163+ ^^^^^^^^^^^^^^^^^^
164+
165+ Once you've finished migrating over to the new cluster, just update your wildcard DNS to
166+ point at your new load balancer. The application names are all the same, so no CNAME
167+ modification needs to occur.
168+
103169In-place upgrade
104170----------------
105171
178244Ensure all applications function as expected.
179245
180246.. _`#710` : https://github.com/deis/deis/issues/710
247+ .. _`#467` : https://github.com/deis/deis/issues/467
0 commit comments