-
Notifications
You must be signed in to change notification settings - Fork 82
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
Use kubernetes #227
Merged
Use kubernetes #227
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thanks @XciD for the changes
XciD
approved these changes
May 9, 2022
Did you try to install it twice? with another domain? it's a good test to see if your helm chart works with multiple instances |
severo
added a commit
that referenced
this pull request
May 9, 2022
this way, two instances of datasets-server can run on the same namespace, with different domain names. Fixes #227 (comment)
you're right: it does not work because I use the name of the chart, not of the release. Fixed: 7abd07d. It works: |
severo
added a commit
that referenced
this pull request
May 11, 2022
* docs: ✏️ add doc about AWS configure, eks, ecr * docs: ✏️ add doc about kubernetes * docs: ✏️ reorganize the files * docs: ✏️ add tools * feat: 🎸 add the structure for the datasets-server helm chart * feat: 🎸 initial helm chart * fix: 🐛 fix helm chart thanks to @XciD comments * feat: 🎸 add workers * feat: 🎸 fix NFS server * test: 💍 disable a test for now * fix: 🐛 remove file! * feat: 🎸 fix images, and remove nfs for now * feat: 🎸 never stop the worker * feat: 🎸 upgrade the worker image (loop) also: fix the dev configuration (typo on the name) * fix: 🐛 name the objects with the chart + release this way, two instances of datasets-server can run on the same namespace, with different domain names. Fixes #227 (comment) * Nfs (#242) * docs: ✏️ clarify doc about Release and Instance name * fix: 🐛 use the release name to name all the objects this way, mongo, which prefixes its name with the release, appears in the same "group" of pods when ordered alphabetically * fix: 🐛 remove "public," from cache-control it is not needed (public is only meant to force public caching for authenticated requests, which is not the case). And it prevented nginx to correctly cache the responses based on cache-control. * refactor: 💡 create one template directory per service Also: use a static name for the containers (see 7abd07d#r73243800) * feat: 🎸 ignore cpu and ram tests if MAX set to 0 Also: add doc to allow using HF_DATASETS_CACHE and HF_MODULES_CACHE to set the datasets library cache directories. * feat: 🎸 add NFS for /assets and dataset library /cache Also: remove the tests for the load (cpu/ram) in the workers. Note: we run the containers with user 1000 and group 3000, and use an initContainer to ensure the mounted volumes from NFS use these user and group. See #241 for a possible security improvement on this. * fix: 🐛 avoid alpine image, and fix the version see https://www.google.com/search?q=why+not+use+alpine for why not using alpine * fix: 🐛 use a sanitized version of .Release.Name because the length of the k8s names is limited * refactor: 💡 move the mongodb URL to a dedicated variable * fix: 🐛 use Recreate strategy for workers * docs: ✏️ add a one-liner to create the secret
mattstern31
added a commit
to mattstern31/datasets-server-storage-admin
that referenced
this pull request
Nov 11, 2023
* docs: ✏️ add doc about AWS configure, eks, ecr * docs: ✏️ add doc about kubernetes * docs: ✏️ reorganize the files * docs: ✏️ add tools * feat: 🎸 add the structure for the datasets-server helm chart * feat: 🎸 initial helm chart * fix: 🐛 fix helm chart thanks to @XciD comments * feat: 🎸 add workers * feat: 🎸 fix NFS server * test: 💍 disable a test for now * fix: 🐛 remove file! * feat: 🎸 fix images, and remove nfs for now * feat: 🎸 never stop the worker * feat: 🎸 upgrade the worker image (loop) also: fix the dev configuration (typo on the name) * fix: 🐛 name the objects with the chart + release this way, two instances of datasets-server can run on the same namespace, with different domain names. Fixes huggingface/dataset-viewer#227 (comment) * Nfs (#242) * docs: ✏️ clarify doc about Release and Instance name * fix: 🐛 use the release name to name all the objects this way, mongo, which prefixes its name with the release, appears in the same "group" of pods when ordered alphabetically * fix: 🐛 remove "public," from cache-control it is not needed (public is only meant to force public caching for authenticated requests, which is not the case). And it prevented nginx to correctly cache the responses based on cache-control. * refactor: 💡 create one template directory per service Also: use a static name for the containers (see huggingface/dataset-viewer@7abd07d#r73243800) * feat: 🎸 ignore cpu and ram tests if MAX set to 0 Also: add doc to allow using HF_DATASETS_CACHE and HF_MODULES_CACHE to set the datasets library cache directories. * feat: 🎸 add NFS for /assets and dataset library /cache Also: remove the tests for the load (cpu/ram) in the workers. Note: we run the containers with user 1000 and group 3000, and use an initContainer to ensure the mounted volumes from NFS use these user and group. See huggingface/dataset-viewer#241 for a possible security improvement on this. * fix: 🐛 avoid alpine image, and fix the version see https://www.google.com/search?q=why+not+use+alpine for why not using alpine * fix: 🐛 use a sanitized version of .Release.Name because the length of the k8s names is limited * refactor: 💡 move the mongodb URL to a dedicated variable * fix: 🐛 use Recreate strategy for workers * docs: ✏️ add a one-liner to create the secret
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #223
This first PR only installs the API in the Kubernetes cluster. Other PRs will install 1. the workers and 2. the nginx reverse proxy