piraeusdatastore / piraeus

High Available Datastore for Kubernetes
https://piraeus.io/
Apache License 2.0
440 stars 50 forks source link

Two questions about drbd containerized installation solution #152

Open xiaoerlangya opened 1 year ago

xiaoerlangya commented 1 year ago

Hello, after reading the document, I found that there is a solution that uses drbd containerization. https://github.com/piraeusdatastore/piraeus-operator/blob/master/doc/host-setup.md

  1. First of all, I would like to ask whether containerized drbd charges. I checked the official website of linbit and found that containerized drbd requires commercial support.
  2. I looked at the dockerfile of the centos8 image, https://github.com/piraeusdatastore/piraeus/blob/master/dockerfiles/drbd-driver-loader/Dockerfile.centos8, A bash script in the dockerfile entry.sh, https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh, in this script only load the DRBD module, It seems that the drbd service has not been started, and there is no network related configuration. Does this need to be operated on the host instead of in the container?

thanks

WanzenBug commented 1 year ago
  1. Everything provided by Piraeus is Open-Source and free of charge. LINBIT offers containers that have the DRBD module pre-built, Piraeus always needs to compile the DRBD module from source.
  2. The drbd.service is not required (or even recommended) to control DRBD. You can use containers to load DRBD and then use other methods to control DRBD. In the case of Piraeus, we also use LINSTOR in a container to control DRBD, but in theory you can just use regular drbdadm on the host once the DRBD module is loaded.