aboutsummaryrefslogtreecommitdiff
path: root/deploy/nomad/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/nomad/README.md')
-rw-r--r--deploy/nomad/README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/deploy/nomad/README.md b/deploy/nomad/README.md
new file mode 100644
index 0000000..65030c3
--- /dev/null
+++ b/deploy/nomad/README.md
@@ -0,0 +1,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
+```