Skip to content

Commit a8823bc

Browse files
author
Matthew Fisher
committed
docs(contrib): update docs with deisctl
1 parent d3ff1ce commit a8823bc

6 files changed

Lines changed: 51 additions & 106 deletions

File tree

contrib/bare-metal/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ Once your server(s) are all provisioned you can proceed to install Deis. Use the
5858

5959
```console
6060
$ ssh-add ~/.ssh/deis
61-
$ export FLEETCTL_TUNNEL=your.server.name.here
62-
$ cd ../.. && make run
61+
$ export DEISCTL_TUNNEL=your.server.name.here
62+
$ deisctl install platform && deisctl start platform
6363
```
6464

6565
## Use Deis!

contrib/digitalocean/README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ $ export DEIS_NUM_ROUTERS=2
8282

8383
## Initialize the cluster
8484
Once the cluster is up, get the IPs of any of the machines using `tugboat droplets`, set
85-
FLEETCTL_TUNNEL to one of these IPs:
85+
DEISCTL_TUNNEL to one of these IPs:
8686
```console
87-
$ export FLEETCTL_TUNNEL=23.253.219.94
88-
$ cd ../.. && make run
87+
$ export DEISCTL_TUNNEL=23.253.219.94
88+
$ deisctl install platform && deisctl start platform
8989
```
9090
The script will deploy Deis and make sure the services start properly.
9191

@@ -103,9 +103,5 @@ email: info@opdemand.com
103103
```
104104

105105
## Hack on Deis
106-
If you'd like to use this deployment to build Deis, you'll need to set `DEIS_HOSTS` to an array of your cluster hosts:
107-
```console
108-
$ DEIS_HOSTS="1.2.3.4 2.3.4.5 3.4.5.6" make build
109-
```
110106

111-
This variable is used in the `make build` command.
107+
See [Hacking on Deis](http://docs.deis.io/en/latest/contributing/hacking/).

contrib/ec2/README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ For more information, see [optimal etcd cluster size](https://github.com/coreos/
3737
Deis clusters of less than 3 nodes are unsupported.
3838

3939
## Choose number of routers
40-
By default, the Makefile will provision 1 router. You can override this by setting `DEIS_NUM_ROUTERS`:
40+
By default, deisctl will provision 1 router. You can override this by scaling up:
4141
```console
42-
$ export DEIS_NUM_ROUTERS=2
42+
$ deisctl scale router=3
4343
```
4444

4545
## Customize user-data
@@ -110,13 +110,13 @@ Please wait for all instances to come up as "running" before continuing.
110110

111111
## Initialize the cluster
112112
Once the cluster is up, get the hostname of any of the machines from EC2, set
113-
FLEETCTL_TUNNEL, and issue a `make run` from the project root:
113+
DEISCTL_TUNNEL, and issue a `deisctl install`:
114114
```console
115115
$ ssh-add ~/.ssh/deis
116-
$ export FLEETCTL_TUNNEL=ec2-12-345-678-90.us-west-1.compute.amazonaws.com
117-
$ cd ../.. && make run
116+
$ export DEISCTL_TUNNEL=ec2-12-345-678-90.us-west-1.compute.amazonaws.com
117+
$ deisctl install platform && deisctl start platform
118118
```
119-
The script will deploy Deis and make sure the services start properly.
119+
Deisctl will deploy Deis and make sure the services start properly.
120120

121121
## Configure load balancer
122122
The Deis provisioning scripts for EC2 automatically create an Elastic Load Balancer for your Deis
@@ -139,12 +139,8 @@ email: info@opdemand.com
139139
```
140140

141141
## Hack on Deis
142-
If you'd like to use this deployment to build Deis, you'll need to set `DEIS_HOSTS` to an array of your cluster hosts:
143-
```console
144-
$ DEIS_HOSTS="1.2.3.4 2.3.4.5 3.4.5.6" make build
145-
```
146142

147-
This variable is used in the `make build` command.
143+
See [Hacking on Deis](http://docs.deis.io/en/latest/contributing/hacking/).
148144

149145
[aws-cli]: https://github.com/aws/aws-cli
150146
[template]: https://s3.amazonaws.com/coreos.com/dist/aws/coreos-alpha.template

contrib/gce/README.md

Lines changed: 21 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Let's build a Deis cluster in Google's Compute Engine!
66

77
This assumes you have a couple of items installed already:
88

9-
* `fleetctl` (You can install form Homebrew using `brew install fleetctl`)
9+
* [deisctl](https://github.com/deis/deisctl)
1010
* `git` (Available via Homebrew or Xcode Command Line Tools)
1111
* A clone of the Deis repository (`git clone https://github.com/deis/deis.git`)
1212
* You are running commands from the a cloned `deis` folder (`cd deis` after cloning)
@@ -292,83 +292,43 @@ $ sudo pip install --upgrade ./client
292292

293293
### Setup
294294

295-
The `FLEETCTL_TUNNEL` environment variable provides a SSH gateway to use in with CoreOS. Use the public IP address for one of the CoreOS nodes we deployed earlier:
295+
The `DEISCTL_TUNNEL` environment variable provides a SSH gateway to use in with `deisctl`. Use the public IP address for one of the CoreOS nodes we deployed earlier:
296296

297297
```shell
298-
export FLEETCTL_TUNNEL=23.236.59.66
298+
export DEISCTL_TUNNEL=23.236.59.66
299299
```
300300

301-
Verify the CoreOS cluster is operation and that we can see all our nodes:
301+
Verify the CoreOS cluster is operational and that we can communicate with the cluster:
302302

303303
```console
304-
$ fleetctl list-machines
304+
$ deisctl list
305305
MACHINE IP METADATA
306-
b0d96509... 10.240.19.74 -
307-
c6e39062... 10.240.174.34 -
308-
e084a014... 10.240.26.179 -
309306
```
310307

311-
Now we can bootstrap the Deis containers. `DEIS_NUM_INSTANCES` should match the number of EC2 instances launched. `DEIS_NUM_ROUTERS` should be at least 2. But can also match node count:
308+
Now we can bootstrap the Deis containers:
312309

313310
```shell
314-
DEIS_NUM_INSTANCES=3 DEIS_NUM_ROUTERS=3 make run
315-
Job deis-router.1.service loaded on 47c540a2.../10.240.62.89
316-
Job deis-router.2.service loaded on 794c2897.../10.240.194.149
317-
Job deis-router.3.service loaded on 177b5a76.../10.240.98.27
318-
Job deis-builder-data.service loaded on 177b5a76.../10.240.98.27
319-
Job deis-database-data.service loaded on 47c540a2.../10.240.62.89
320-
Job deis-logger-data.service loaded on 177b5a76.../10.240.98.27
321-
Job deis-registry-data.service loaded on 47c540a2.../10.240.62.89
322-
fleetctl --strict-host-key-checking=false load registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
323-
Job deis-logger.service loaded on 177b5a76.../10.240.98.27
324-
Job deis-registry.service loaded on 47c540a2.../10.240.62.89
325-
Job deis-cache.service loaded on 47c540a2.../10.240.62.89
326-
Job deis-database.service loaded on 47c540a2.../10.240.62.89
327-
fleetctl --strict-host-key-checking=false load controller/systemd/*.service
328-
Job deis-controller.service loaded on 177b5a76.../10.240.98.27
329-
fleetctl --strict-host-key-checking=false load builder/systemd/*.service
330-
Job deis-builder.service loaded on 177b5a76.../10.240.98.27
331-
Deis components may take a long time to start the first time they are initialized.
332-
Waiting for 1 of 3 deis-routers to start...
333-
fleetctl --strict-host-key-checking=false start -no-block deis-router.1.service; fleetctl --strict-host-key-checking=false start -no-block deis-router.2.service; fleetctl --strict-host-key-checking=false start -no-block deis-router.3.service;
334-
Triggered job deis-router.1.service start
335-
Triggered job deis-router.2.service start
336-
Triggered job deis-router.3.service start
337-
Waiting for deis-registry to start...
338-
fleetctl --strict-host-key-checking=false start -no-block registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
339-
Triggered job deis-registry.service start
340-
Triggered job deis-logger.service start
341-
Triggered job deis-cache.service start
342-
Triggered job deis-database.service start
343-
Waiting for deis-controller to start...
344-
fleetctl --strict-host-key-checking=false start -no-block controller/systemd/*
345-
Triggered job deis-controller.service start
346-
Waiting for deis-builder to start...
347-
fleetctl --strict-host-key-checking=false start -no-block builder/systemd/*.service
348-
Triggered job deis-builder.service start
349-
Your Deis cluster is ready to go! Continue following the README to login and use Deis.
311+
deisctl install platform && deisctl start platform
350312
```
351313

352314
This operation will take a while as all the Deis systemd units are loaded into the CoreOS cluster and the Docker images are pulled down. Grab some iced tea!
353315

354-
Verify that all the units are active after the `make run` operation completes:
316+
Verify that all the units are active after the operation completes:
355317

356318
```console
357-
$ fleetctl list-units
358-
UNIT STATE LOAD ACTIVE SUB DESC MACHINE
359-
deis-builder-data.service loaded loaded active exited deis-builder-data 177b5a76.../10.240.98.27
360-
deis-builder.service launched loaded active running deis-builder 177b5a76.../10.240.98.27
361-
deis-cache.service launched loaded active running deis-cache 47c540a2.../10.240.62.89
362-
deis-controller.service launched loaded active running deis-controller 177b5a76.../10.240.98.27
363-
deis-database-data.service loaded loaded active exited deis-database-data 47c540a2.../10.240.62.89
364-
deis-database.service launched loaded active running deis-database 47c540a2.../10.240.62.89
365-
deis-logger-data.service loaded loaded active exited deis-logger-data 177b5a76.../10.240.98.27
366-
deis-logger.service launched loaded active running deis-logger 177b5a76.../10.240.98.27
367-
deis-registry-data.service loaded loaded active exited deis-registry-data 47c540a2.../10.240.62.89
368-
deis-registry.service launched loaded active running deis-registry 47c540a2.../10.240.62.89
369-
deis-router.1.service launched loaded active running deis-router 47c540a2.../10.240.62.89
370-
deis-router.2.service launched loaded active running deis-router 794c2897.../10.240.194.149
371-
deis-router.3.service launched loaded active running deis-router 177b5a76.../10.240.98.27
319+
$ deisctl list
320+
UNIT MACHINE LOAD ACTIVE SUB
321+
deis-builder-data.service dea53588.../172.17.8.100 loaded active exited
322+
deis-builder@1.service dea53588.../172.17.8.100 loaded active running
323+
deis-cache@1.service dea53588.../172.17.8.100 loaded active running
324+
deis-controller@1.service dea53588.../172.17.8.100 loaded active running
325+
deis-database-data.service dea53588.../172.17.8.100 loaded active exited
326+
deis-database@1.service dea53588.../172.17.8.100 loaded active running
327+
deis-logger-data.service dea53588.../172.17.8.100 loaded active exited
328+
deis-logger@1.service dea53588.../172.17.8.100 loaded active running
329+
deis-registry-data.service dea53588.../172.17.8.100 loaded active exited
330+
deis-registry@1.service dea53588.../172.17.8.100 loaded active running
331+
deis-router@1.service dea53588.../172.17.8.100 loaded active running
372332
```
373333

374334
Everything looks good! Register the admin user. The first user added to the system becomes the admin:

contrib/openstack/README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,14 @@ $ export DEIS_NUM_ROUTERS=2
8080
Once the cluster is up:
8181
* **If required, allocate and associate floating IPs to any or all of your hosts**
8282
* Get the IP address of any of the machines from Openstack
83-
* set FLEETCTL_TUNNEL, and issue a `make run` from the project root:
83+
* set DEISCTL_TUNNEL and install the platform:
8484

8585
```console
86-
$ export FLEETCTL_TUNNEL=23.253.219.94
87-
$ cd ../.. && make run
86+
$ export DEISCTL_TUNNEL=23.253.219.94
87+
$ deisctl install platform && deisctl start platform
8888
```
8989

90-
The script will deploy Deis and make sure the services start properly.
90+
The installer will deploy Deis and make sure the services start properly.
9191

9292
### Configure DNS
9393
You'll need to configure DNS records so you can access applications hosted on Deis. See [Configuring DNS](http://docs.deis.io/en/latest/installing_deis/configure-dns/) for details.
@@ -103,9 +103,5 @@ email: info@opdemand.com
103103
```
104104

105105
## Hack on Deis
106-
If you'd like to use this deployment to build Deis, you'll need to set `DEIS_HOSTS` to an array of your cluster hosts:
107-
```console
108-
$ DEIS_HOSTS="1.2.3.4 2.3.4.5 3.4.5.6" make build
109-
```
110106

111-
This variable is used in the `make build` command.
107+
See [Hacking on Deis](http://docs.deis.io/en/latest/contributing/hacking/).

contrib/rackspace/README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ Usage: provision-rackspace-cluster.sh <key pair name> [flavor]
5454
$ ./provision-rackspace-cluster.sh deis-key
5555
```
5656

57-
### Choose number of routers
58-
By default, the Makefile will provision 1 router. You can override this by setting `DEIS_NUM_ROUTERS`:
59-
```console
60-
$ export DEIS_NUM_ROUTERS=2
61-
```
62-
6357
### Update CoreOS
6458
Due to image publishing limitations on Rackspace, CoreOS images on Rackspace are frequently out of date.
6559
Each machine needs to be updated. On each one, run:
@@ -72,12 +66,19 @@ Once the machine is rebooted, it should have a recent CoreOS version.
7266

7367
### Initialize the cluster
7468
Once the cluster is up, get the hostname of any of the machines from Rackspace, set
75-
FLEETCTL_TUNNEL, and issue a `make run` from the project root:
69+
DEISCTL_TUNNEL and install the platform:
7670
```console
77-
$ export FLEETCTL_TUNNEL=23.253.219.94
78-
$ cd ../.. && make run
71+
$ export DEISCTL_TUNNEL=23.253.219.94
72+
$ deisctl install platform && deisctl start platform
73+
```
74+
75+
The installer will deploy Deis and make sure the services start properly.
76+
77+
### Choose number of routers
78+
By default, `deisctl` will provision 1 router. You can override this by scaling up:
79+
```console
80+
$ deisctl scale router=2
7981
```
80-
The script will deploy Deis and make sure the services start properly.
8182

8283
### Configure DNS
8384
You'll need to configure DNS records so you can access applications hosted on Deis. See [Configuring DNS](http://docs.deis.io/en/latest/installing_deis/configure-dns/) for details.
@@ -108,9 +109,5 @@ email: info@opdemand.com
108109
```
109110

110111
## Hack on Deis
111-
If you'd like to use this deployment to build Deis, you'll need to set `DEIS_HOSTS` to an array of your cluster hosts:
112-
```console
113-
$ DEIS_HOSTS="1.2.3.4 2.3.4.5 3.4.5.6" make build
114-
```
115112

116-
This variable is used in the `make build` command.
113+
See [Hacking on Deis](http://docs.deis.io/en/latest/contributing/hacking/).

0 commit comments

Comments
 (0)