Git Product home page Git Product logo

dockerswarm-minio's Introduction

Docker Swarm MinIO

logo

Deploy MinIO storage server in Docker Swarm

Prerequisites

You should create your credentials keys. Run in master node :

echo "AKIAIOSFODNN7EXAMPLE" | docker secret create access_key -
echo "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" | docker secret create secret_key -

We have 4 service by default that run in 4 node. Set label for Swarm nodes and configure them in deploy > placement > constraints and environment > MINIO_DISTRIBUTED_NODES

Bringing up the stack

docker stack deploy -c docker-stack.yml MinIO

Wait until all disks are up and running then you can access MinIO cluster from exposed ports ( 9002-9005 ) and use any client to use them


Support

Donate with Bitcoin Donate with Ethereum

ko-fi

Contributing

Don't be shy to be a contributor 😉

  1. Fork it !
  2. Create your feature branch : git checkout -b my-new-feature
  3. Commit your changes : git commit -am 'Add some feature'
  4. Push to the branch : git push origin my-new-feature
  5. Submit a pull request

Issues

Each project may have many problems. Contributing to the better development of this project by reporting them.

dockerswarm-minio's People

Contributors

hatamiarash7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dockerswarm-minio's Issues

Error: "no suitable node (scheduling …"

I am continually getting this error message, any idea what is happening?

Here are the steps to reproduce the problem:

root@dkrswpmgr:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
bjrr8rqa55u686r0n6qw1yh37 dkrswnworkertwo Ready Active 20.10.14
slq6p97k49c3patnkqj459jbx * dkrswpmgr Ready Active Leader 20.10.14
z5e3wk78f75yg8t1u34tny0gf dkrswpworkerone Ready Active 20.10.14
3i92etwcwo45dgavoz2l4n1nk dkrswpworkerthree Ready Active 20.10.14

root@dkrswpmgr:# echo "$(openssl rand -base64 21)" > ACCESS_KEY
root@dkrswpmgr:
# echo "$(openssl rand -base64 41)" > SECRET_KEY
root@dkrswpmgr:# cat ACCESS_KEY | docker secret create access_key -
root@dkrswpmgr:
# cat SECRET_KEY | docker secret create secret_key -

root@dkrswpmgr:# docker node update --label-add minio1=true slq6p97k49c3patnkqj459jbx
root@dkrswpmgr:
# docker node update --label-add minio2=true z5e3wk78f75yg8t1u34tny0gf
root@dkrswpmgr:# docker node update --label-add minio3=true bjrr8rqa55u686r0n6qw1yh37
root@dkrswpmgr:
# docker node update --label-add minio4=true 3i92etwcwo45dgavoz2l4n1nk

root@dkrswpmgr:~# docker stack deploy -c docker-stack.yml MinIO
Creating network MinIO_minio_distributed
Creating service MinIO_minio3
Creating service MinIO_minio4
Creating service MinIO_minio1
Creating service MinIO_minio2

root@dkrswpmgr:~# docker stack ps MinIO
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
t7buvsobves9 MinIO_minio1.1 minio/minio:RELEASE.2020-03-19T21-49-00Z Running Pending about a minute ago "no suitable node (scheduling …"
mqncg2za3xqy MinIO_minio2.1 minio/minio:RELEASE.2020-03-19T21-49-00Z Running Pending about a minute ago "no suitable node (scheduling …"
uvqif3s9hajw MinIO_minio3.1 minio/minio:RELEASE.2020-03-19T21-49-00Z Running Pending about a minute ago "no suitable node (scheduling …"
k3lp2yxnokwy MinIO_minio4.1 minio/minio:RELEASE.2020-03-19T21-49-00Z Running Pending about a minute ago "no suitable node (scheduling …"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.