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

WIP: feat(backend): Add support for importing models stored in the Modelcar format (emptyDir copy) #11590

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mprahl
Copy link
Contributor

@mprahl mprahl commented Feb 5, 2025

Description of your changes:

This allows dsl.import to leverage Modelcar container images in an OCI repository. This works by having any component container have an init container with the image set to the Modelcar container image and the /models directory contents copied to an empty dir volume that is accessible in the component container.

This approach has the benefit of leveraging image pull secrets configured on the Kubernetes cluster rather than require separate credentials for importing the artifact.

Note that once Kubernetes supports OCI images as volume mounts for several releases, consider replacing the init container with that approach.

Resolves:
#11584

Checklist:

Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign chensun for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mprahl mprahl force-pushed the import-as-oci branch 7 times, most recently from 20c57ac to 062dbee Compare February 6, 2025 02:33
@mprahl mprahl marked this pull request as ready for review February 6, 2025 02:38
@mprahl mprahl changed the title WIP: feat(backend): Add support for importing models stored in the Modelcar format feat(backend): Add support for importing models stored in the Modelcar format Feb 6, 2025
@mprahl
Copy link
Contributor Author

mprahl commented Feb 6, 2025

/cc @HumairAK

@google-oss-prow google-oss-prow bot requested a review from HumairAK February 6, 2025 02:38
@mprahl mprahl force-pushed the import-as-oci branch 6 times, most recently from c911503 to b020bcc Compare February 6, 2025 03:33
This allows dsl.import to leverage Modelcar container images in an OCI
repository. This works by having any component container have an init
container with the image set to the Modelcar container image and the
/models directory contents copied to an emptyDir volume that is
accessible in the component container.

This approach has the benefit of leveraging image pull secrets
configured on the Kubernetes cluster rather than require separate
credentials for importing the artifact.

Note that once Kubernetes supports OCI images as volume mounts for
several releases, consider replacing the init container with that
approach.

Resolves:
kubeflow#11584

Signed-off-by: mprahl <[email protected]>
@rimolive
Copy link
Member

rimolive commented Feb 7, 2025

Code LGTM, but it would be great if you can share instructions to test this PR as well as (if possible) provide additional documentation about this new feature with examples.

@rimolive
Copy link
Member

rimolive commented Feb 7, 2025

/lgtm
for now. Documentation can be added in website repo later.

@google-oss-prow google-oss-prow bot added the lgtm label Feb 7, 2025
@mprahl mprahl changed the title feat(backend): Add support for importing models stored in the Modelcar format WIP: feat(backend): Add support for importing models stored in the Modelcar format (emptyDir copy) Feb 8, 2025
@mprahl mprahl marked this pull request as draft February 8, 2025 20:31
@mprahl
Copy link
Contributor Author

mprahl commented Feb 8, 2025

/hold considering the sidecar approach instead in #11606.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants