Skip to content

Conversation

@majinghe
Copy link
Contributor

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Summary of Changes

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CI/CD passed (if applicable)

Impact

  • Breaking change (compatibility)
  • Requires doc/config/deployment update
  • Other impact:

Additional Notes


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

@majinghe majinghe marked this pull request as draft November 18, 2025 01:55
@majinghe majinghe marked this pull request as ready for review November 18, 2025 02:55
@majinghe
Copy link
Contributor Author

Add standalone mode support, just one pod one pvc.

@houseme houseme requested a review from Copilot November 18, 2025 05:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds standalone mode support to the RustFS Helm chart, allowing users to deploy RustFS either as a single-pod standalone instance or as a multi-pod distributed cluster. The changes introduce mode configuration options and create appropriate Kubernetes resources for each deployment type.

Key changes:

  • Added mode configuration (mode.standalone.enabled and mode.distributed.enabled) to control deployment type
  • Created new Deployment and PVC templates for standalone mode
  • Updated security contexts to use UID/GID 10001 instead of 1000 across all components
  • Modified existing templates to conditionally deploy based on selected mode

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
helm/rustfs/values.yaml Added mode configuration, updated security contexts to use UID 10001, changed image pull policy and tag defaults
helm/rustfs/tls/tls.key Updated placeholder text for private key
helm/rustfs/tls/tls.crt Updated placeholder text for certificate
helm/rustfs/templates/statefulset.yaml Wrapped in distributed mode conditional, updated security contexts and user IDs, converted logs from emptyDir to PVC
helm/rustfs/templates/service.yaml Added conditional deployment for headless service based on distributed mode
helm/rustfs/templates/pvc.yaml New file defining PersistentVolumeClaims for standalone mode
helm/rustfs/templates/deployment.yaml New file defining Deployment resource for standalone mode
helm/rustfs/templates/configmap.yaml Added conditional RUSTFS_VOLUMES configuration based on deployment mode
helm/README.md Updated documentation to describe standalone and distributed modes, updated version requirement to 1.0.0-alpha.68
Dockerfile Updated user and group IDs from 1000 to 10001

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@loverustfs loverustfs merged commit 44f3f3d into rustfs:main Nov 19, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants