You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-33Lines changed: 1 addition & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,15 +23,11 @@ On your workstation:
23
23
* Install the fleetctl client: Install v0.3.2 from the [fleet GitHub page](https://github.com/coreos/fleet/releases).
24
24
* Install the Docker client if you want to run Docker commands locally (optional)
25
25
26
-
If you're on Ubuntu, you need to install the nfs-kernel-server package as it's required for sharing folders between your host and your CoreOS VM:
27
-
28
-
sudo apt-get install nfs-kernel-server
29
-
30
26
## Additional setup for a multi-node cluster
31
27
If you'd like to spin up more than one VM to test an entire cluster, there are a few additional prerequisites:
32
28
* Edit [contrib/coreos/user-data](contrib/coreos/user-data) and add a unique discovery URL generated from `https://discovery.etcd.io/new`
33
29
* Set `DEIS_NUM_INSTANCES` to the desired size of your cluster (typically 3 or 5): ```$ export DEIS_NUM_INSTANCES=3```
34
-
* Instead of `local.deisapp.com`, use either `local3.deisapp.com` or `local5.deisapp.com` as your hostname for accessing the cluster
30
+
* Instead of `local.deisapp.com`, use either `local3.deisapp.com` or `local5.deisapp.com` as your cluster domain
35
31
36
32
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members.
37
33
For more information, see [optimal etcd cluster size](https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md).
@@ -80,20 +76,6 @@ Your Vagrant VM is accessible at `local.deisapp.com` (or `local3.deisapp.com`/`l
80
76
## Testing the cluster
81
77
Integration tests and corresponding documentation can be found under the `test/` folder.
82
78
83
-
These systemd services run the various containers which compose Deis, and can be stopped on a machine with `sudo systemctl stop servicename`.
84
-
* deis-builder.service
85
-
* deis-cache.service
86
-
* deis-controller.service
87
-
* deis-database.service
88
-
* deis-discovery.service
89
-
* deis-logger.service
90
-
* deis-registry.service
91
-
* deis-router.service
92
-
93
-
Logging into one of the CoreOS machines and stopping a container service should cause the same component on another CoreOS
94
-
host to take over as master.
95
-
Similarly, bringing down a VM should enable the services on another VM to take over as master.
96
-
97
79
## Install the Deis Client
98
80
If you're using the latest Deis release, use `pip install deis` to install the latest [Deis Client](https://pypi.python.org/pypi/deis/) or download [pre-compiled binaries](https://github.com/deis/deis/tree/master/client#get-started).
99
81
@@ -139,7 +121,6 @@ The `dev` cluster will be used as the default cluster for future `deis` commands
139
121
## Clone an example application or use an existing one
140
122
Example applications can be cloned from the Deis GitHub [organization](https://github.com/deis).
141
123
Commonly-used example applications include [Helloworld (Dockerfile)](https://github.com/deis/helloworld), [Go](https://github.com/deis/example-go), and [Ruby](https://github.com/deis/example-ruby-sinatra).
142
-
143
124
144
125
## Create an Application
145
126
From within the application directory, create an application on the default `dev` cluster:
@@ -169,8 +150,6 @@ Configure your application with environment variables. Each config change also
169
150
$ deis config:set DATABASE_URL=postgres://
170
151
```
171
152
172
-
Coming soon: Use the integrated ETCD namespace for service discovery between applications on the same cluster.
173
-
174
153
## Test
175
154
### Run tests
176
155
Test your application by running commands inside an ephemeral Docker container.
@@ -197,14 +176,6 @@ $ deis logs
197
176
198
177
Use `deis run` to execute one-off commands and explore the deployed container. Coming soon: `deis attach` to jump into a live container.
199
178
200
-
## Known Issues
201
-
202
-
We have sometimes seen the VM reboot while doing `make build` against a
203
-
Vagrant virtual machine. If you see this issue using a recent version of
204
-
Vagrant and the current master version of Deis, please add to the issue
205
-
report at https://github.com/coreos/coreos-vagrant/issues/68 to help us
206
-
pin it down.
207
-
208
179
## Troubleshooting
209
180
210
181
Common issues that users have run into when provisioning Deis are detailed below.
@@ -215,9 +186,6 @@ Did you remember to add your SSH key to the ssh-agent? `ssh-agent -L` should lis
215
186
#### When running a `make` action - 'All the given peers are not reachable (Tried to connect to each peer twice and failed)'
216
187
The most common cause of this issue is that a [new discovery URL](https://discovery.etcd.io/new) wasn't generated and updated in [contrib/coreos/user-data](contrib/coreos/user-data) before the cluster was launched. Each Deis cluster must have a unique discovery URL, else there will be entries for old hosts that etcd will try and fail to connect to. Destroy and relaunch the cluster, ensuring to use a fresh discovery URL.
217
188
218
-
#### Various NFS issues, specifically an 'access denied' error
219
-
The easiest workaround for this is to use rsync instead of NFS. In the Vagrantfile, swap out the `config.vm.synced_folder` line for the commented version.
220
-
221
189
#### Scaling an app doesn't work, and/or the app shows 'Welcome to nginx!'
222
190
This means the controller failed to submit jobs for the app to fleet. `fleetctl status deis-controller` will show detailed error information, but the most common cause of this is that the cluster was created with the wrong SSH key for the `--auth` parameter. The key supplied with the `--auth` parameter must be the same key that was used to provision the Deis servers. If you suspect this to be the issue, you'll need to `clusters:destroy` the cluster and recreate it, along with the app.
0 commit comments