aboutsummaryrefslogtreecommitdiff
path: root/deploy/nomad/README.md
blob: 65030c3f9b28fe8dc7dac6f0bf3018fb811584c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Example of using seaweedfs with HashiCorp Nomad


## Running seaweedfs cluster

You can skip this part if you have already running seaweedfs.

Assumptions:
 - Running Nomad cluster
 - At least 3 nodes with static IP addresses
 - Enabled memroy oversuscription (https://learn.hashicorp.com/tutorials/nomad/memory-oversubscription?in=nomad%2Fadvanced-scheduling)
 - Running PostgreSQL instance for filer

```shell
export NOMAD_ADDR=http://nomad.service.consul:4646

nomad run seaweedfs.hcl
```

Seaweedfs master will be available on http://seaweedfs-master.service.consul:9333/

Seaweedfs filer will be available on http://seaweedfs-filer.service.consul:8888/


## Running CSI

```shell
export NOMAD_ADDR=http://nomad.service.consul:4646

# Start CSI plugin
nomad run seaweedfs-csi.hcl

# Create volume
nomad volume create example-seaweedfs-volume.hcl

# Start sample app
nomad run example-seaweedfs-app.hcl
```