mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 01:06:47 +00:00
Create deployment_swarm.md
This commit is contained in:
parent
907a55f60d
commit
c706859731
32
guide/deployment_swarm.md
Normal file
32
guide/deployment_swarm.md
Normal file
@ -0,0 +1,32 @@
|
||||
# Deployment guide for Docker Swarm
|
||||
|
||||
> Note: The best place to start is the README file in the faas or faas-netes repo.
|
||||
|
||||
## Initialize Swarm Mode
|
||||
|
||||
Use either a single host or multi-node setup.
|
||||
|
||||
This is how you initialize your master node:
|
||||
|
||||
```
|
||||
# docker swarm init
|
||||
```
|
||||
|
||||
If you have more than one IP address you may need to pass a string like `--advertise-addr eth0` to this command.
|
||||
|
||||
Then copy any join token commands you see and run them on your worker nodes.
|
||||
|
||||
## Deploy the stack
|
||||
|
||||
```
|
||||
$ git clone https://github.com/alexellis/faas && \
|
||||
cd faas && \
|
||||
git checkout 0.6.0 && \
|
||||
./deploy_stack.sh
|
||||
```
|
||||
|
||||
## Test the UI
|
||||
|
||||
Within a few seconds (or minutes if on a poor WiFi connection) the API gateway and sample functions will be pulled into your local Docker library and you will be able to access the UI at:
|
||||
|
||||
http://localhost:8080
|
Loading…
x
Reference in New Issue
Block a user