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

feat: Provide ability to create statefulset #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yasn77
Copy link

@yasn77 yasn77 commented Nov 11, 2024

When using verdaccio as purely an edge cache, multiple deployment replicas require that the storage PV support ReadWriteMany. However, such PVs are not always available.

A StatefulSet can be used instead, where each replica will have it's own PV. This has the downside that initially the storage will be empty and may take time for them to get populated.

To be clear, Using StatefulSet is primarly useful for when verdaccio is an edge cache; Using it as a regular NPM registry (accepting uploads), would require additional step of syncing artifacts.

yasn77 and others added 2 commits November 11, 2024 15:08
When using verdaccio as purely an edge cache, multiple deployment replicas require that
the storage PV support ReadWriteMany. However, such PVs are not always available.

A StatefulSet can be used instead, where each replica will have it's own PV.
This has the downside that initially the storage will be empty and may take time
for them to get populated.

To be clear, Using StatefulSet is primarly useful for when verdaccio is an edge
cache; Using it as a regular NPM registry (accepting uploads), would require
additional step of syncing artifacts.
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.

2 participants