Skip to content
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

Add shared option to NnfSystemStorage #417

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

matthew-richerson
Copy link
Contributor

The shared option determines whether to create a single allocation per Rabbit that is shared between all the computes on the Rabbit, or one allocation per compute node.

@bdevcich
Copy link
Contributor

What's the reason for this change again?

@matthew-richerson
Copy link
Contributor Author

What's the reason for this change again?

So that a XFS system storage can have a separate file system for each compute node.

} else {
dst.Spec.ExcludeDisabledRabbits = false
dst.Spec.Shared = true
Copy link
Contributor

Choose a reason for hiding this comment

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

In alpha2/3, you have this set to false, but true here.

// per compute node.
// +kubebuilder:default:=true
Shared bool `json:"shared"`

// StorageProfile is an object reference to the storage profile to use
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does the user set this? Gitops?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Anywhere you can create a NnfSystemStorage resource. kubectl, gitops, etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

The NnfSystemStorages have a reserved spot here in the boilerplate: https://github.com/NearNodeFlash/argocd-boilerplate/blob/main/environments/example-env/site-config/lvmlock-systemstorage.yaml#L8

So here, in our local gitops: environments/htx-1/site-config/lvmlock-systemstorage.yaml

Copy link
Contributor

Choose a reason for hiding this comment

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

So if you have NnfSystemStorages for some other thing, not the lvmlock even/odd situation, you'd add them to another file in site-config.

The shared option determines whether to create a single allocation per Rabbit
that is shared between all the computes on the Rabbit, or one allocation per
compute node.

Signed-off-by: Matt Richerson <[email protected]>
@matthew-richerson
Copy link
Contributor Author

rebased on master to resolve conflicts

@matthew-richerson matthew-richerson merged commit 5bf3a0e into master Nov 20, 2024
3 checks passed
@matthew-richerson matthew-richerson deleted the private_system_storage branch November 20, 2024 17:51
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