@@ -29,10 +29,36 @@ and then reinstall platform components.
2929
3030Use the following steps to perform an in-place upgrade of your Deis cluster.
3131
32+ First, use the current ``deisctl `` to stop and uninstall the Deis platform.
33+
3234.. code-block :: console
3335
36+ $ deisctl --version # should match the installed platform
37+ 1.0.2
3438 $ deisctl stop platform && deisctl uninstall platform
35- $ deisctl config platform set version=v1.0.2
39+
40+ There are important security fixes since Deis 1.0.2 that require upgrading
41+ to CoreOS 494.1.0 or later, and configuring Docker to access deis-registry. See
42+ :ref: `upgrading-coreos ` first, then open a shell to each node:
43+
44+ .. code-block :: console
45+
46+ $ ssh deis-1.example.com # repeat these steps for each node
47+ $ sudo -i
48+ $ cat <<EOF > /etc/systemd/system/docker.service.d/50-insecure-registry.conf
49+ [Service]
50+ Environment="DOCKER_OPTS=--insecure-registry 10.0.0.0/8 --insecure-registry 172.16.0.0/12 --insecure-registry 192.168.0.0/16"
51+ EOF
52+ $ reboot # one node at a time, to avoid etcd failures
53+
54+ Finally, update ``deisctl `` to the new version and reinstall:
55+
56+ .. code-block :: console
57+
58+ $ curl -sSL http://deis.io/deisctl/install.sh | sh -s 1.1.0
59+ $ deisctl --version # should match the desired platform
60+ 1.1.0
61+ $ deisctl config platform set version=v1.1.0
3662 $ deisctl install platform
3763 $ deisctl start platform
3864
@@ -146,6 +172,8 @@ Retire the old cluster
146172Once all applications have been validated, the old cluster can be retired.
147173
148174
175+ .. _upgrading-coreos :
176+
149177Upgrading CoreOS
150178----------------
151179
@@ -172,6 +200,7 @@ To update CoreOS, run the following commands:
172200
173201 $ ssh core@<server ip>
174202 $ sudo su
203+ $ echo GROUP=beta > /etc/coreos/update.conf
175204 $ systemctl unmask update-engine.service
176205 $ systemctl start update-engine.service
177206 $ update_engine_client -update
0 commit comments