An operator to manage bucket and user on a RustFS instance through Kubernetes CRDs.
Find better docs here: https://rustfs.badhouseplants.net
helm install rustfs-manager-operator oci://ghcr.io/allanger/rustfs-manager-operator/helm/rustfs-manager-operator --version 0.1.2- Create a values file:
# values.yaml
endpoint: https://your.rust.fs
username: admin
password: qwertyu9- Install the rustfs-instance helm chart
helm install rustfs-instance oci://ghcr.io/allanger/rustfs-manager-operator/helm/rustfs-instance --version 0.1.2 -f ./values.yamlapiVersion: rustfs.badhouseplants.net/v1beta1
kind: RustFSBucket
metadata:
name: <bucket name>
namespace: <application namespace>
spec:
# When cleanup is set to true, bucket will be removed from the instance
cleanup: false
# On which instance this bucket should be created
instance: rustfs-instance
# If true, bucket will be created with object locking
objectLock: false
# If true, bucket will be created with versioning
versioning: falseapiVersion: rustfs.badhouseplants.net/v1beta1
kind: RustFSBucketUser
metadata:
name: <username>
namespace: <application namespace>
spec:
bucket: <a name of the bucket CR>
# User will be removed from the RustFS instance if set to true
cleanup: false
access: readWrite # or readOnlykubectl get configmap <bucket name>-bucket-info -o yaml
apiVersion: v1
kind: ConfigMap
data:
AWS_BUCKET_NAME: <bucket name>
AWS_ENDPOINT_URL: <endpoint>
AWS_REGION: <region>kubectl get secret <username>-bucket-creds -o yaml
apiVersion: v1
kind: ConfigMap
data:
AWS_ACCESS_KEY_ID: <username>
AWS_SECRET_ACCESS_KEY: <a generated password>