-
Notifications
You must be signed in to change notification settings - Fork 759
add standalone mode support #881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Add standalone mode support, just one pod one pvc. |
There was a problem hiding this 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.enabledandmode.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.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Type of Change
Related Issues
Summary of Changes
Checklist
make pre-commitImpact
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.