Skip to content

Conversation

@serhiynovos
Copy link
Contributor

@serhiynovos serhiynovos commented Nov 24, 2025

  1. Removed .rustfs.svc.cluster.local as all pods for statefulset are running in the same namespace
  2. used "rustfs.fullname" as it's used in statefulset services and statefull set names

Type of Change

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

Related Issues

Once I installed helm chart I noticed that all pods were crashing. Here I noticed a few issues

  1. I installed it not to rustfs namespace
  2. Pod and service name did not match the same name as rustfs.fullname

Summary of Changes

As all pods are running in the same namespace I left only headless service name + pod name. Updated pod name and service name according to names defined for statefulset and services

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)

1. Removed .rustfs.svc.cluster.local as all pods for statefulset are running in the same namespace
2. used "rustfs.fullname" as it's used in statefulset services and statefull set names
@CLAassistant
Copy link

CLAassistant commented Nov 24, 2025

CLA assistant check
All committers have signed the CLA.

@loverustfs
Copy link
Contributor

Really appreciate the help! We're going to review this and follow up with you.

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 PR fixes pod crashing issues caused by incorrect service and pod naming in the RUSTFS_VOLUMES configuration for distributed mode deployments.

  • Replaced hardcoded service/pod names with templated rustfs.fullname helper function
  • Removed unnecessary .rustfs.svc.cluster.local namespace suffix for intra-namespace communication
  • Applied fixes to both 4-replica and 16-replica configurations

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

Copy link
Contributor

@majinghe majinghe left a comment

Choose a reason for hiding this comment

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

@serhiynovos Thanks for you contribution. I think FQDN is better?

@serhiynovos
Copy link
Contributor Author

@majinghe if all pods within one namespace it's not necessary also svc.local.cluster is not constant. K8s allow to use different values for it

@majinghe
Copy link
Contributor

/LGTM @loverustfs @houseme

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


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

@loverustfs loverustfs merged commit a6cf074 into rustfs:main Nov 29, 2025
18 checks passed
@loverustfs
Copy link
Contributor

@serhiynovos Thank you very much.

@jurim76
Copy link
Contributor

jurim76 commented Nov 29, 2025

This part should be moved to template helper and added possibility to override with config.rustfs.volume (currently unused), imho

@loverustfs
Copy link
Contributor

This part should be moved to template helper and added possibility to override with config.rustfs.volume (currently unused), imho

@majinghe

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.

6 participants