Installation de rustfs
Introduction
RustFS est un serveur de stockage objet compatible avec l’API S3, permettant de stocker et gérer des fichiers sous forme d’objets. Il constitue une solution légère et open source, adaptée notamment aux environnements Kubernetes et aux infrastructures privées.
Fichier de configuration
cd /tmp
curl https://gitforge.dyndns.org/downloads/rustfs/rustfs-1.0.0.tar.gz -o rustfs-1.0.0.tar.gz
tar zxvf rustfs-1.0.0.tar.gz
cd rustfs-1.0.0
Configuration de rustfs
Avant de procéder à l'installation, éditez le fichier values.yaml afin d'adapter les variables à votre environnement.
Pv-Pvc
Cela permet à Rustfs d'avoir son pv hors cluster
sudo mkdir -p /backup/srv/k3s/rustfs
sudo chown -R 10001:10001 /backup/srv/k3s/rustfs
sudo chmod 750 /backup/srv/k3s/rustfs
kubectl apply -f rustfs-pv-pvc.yaml
Installation de rustfs
helm repo add rustfs https://charts.rustfs.com/
helm repo update
helm upgrade rustfs rustfs/rustfs \
--install \
--atomic \
--cleanup-on-fail \
--values=./values.yaml \
--namespace rustfs-system \
--create-namespace
Configuration de la gateway rustfs
helm upgrade rustfs-gateway . \
--install \
--atomic \
--cleanup-on-fail \
--values=./values.yaml \
--namespace rustfs-system \
--create-namespace
Configuration de rustfs
Dans le cadre de cette documentation, nous installerons plus loin Longhorn et Velero. Nous aurons donc besoin de buckets S3 pour leur fonctionnement.
Nous allons créer les différents éléments suivants :
- un utilisateur longhorn et velero
- un bucket longhorn et veleor
- une politique d'accès pour ces deux buckets
Vous pouvez créer ces éléments manuellement via l’interface web de RustFS ou utiliser le script fourni dans l’archive.
Création via le script
sudo chmod +x script/create-buckets.sh
script/create-buckets.sh
Nettoyage
cd
rm -rf /tmp/rustfs-1.0.0*
| Version | Date | Change | Auteur |
|---|---|---|---|
| 1.0 | 21.09.2026 | Création | GMo |