GithubHelp home page GithubHelp logo

Comments (6)

ellistarn avatar ellistarn commented on July 26, 2024

How do you feel about annotations?

from kserve.

yuzisun avatar yuzisun commented on July 26, 2024

@ellis-bigelow any further thoughts on this? By checking this page, looks a bunch of envs are needed
https://github.com/kubeflow/examples/tree/master/mnist#using-s3, not sure how to use annotation.

from kserve.

ellistarn avatar ellistarn commented on July 26, 2024

Here's the flow I had in mind:

  1. User must have pre-created secret
  2. User provides an annotation referencing the secret: "serving.kubeflow.org/kfservice-s3-model-secret: secretRef"
  3. In our controller, if the user provides that annotation, we mount those to the kfconfigurations

I only worry a little bit that our default + canary model is a little weird. What happens if a user wants to canary a new secret -- they'll take an outage. Perhaps we can qualify the annotations?

We may want to not specify s3 and just mount the secret to all relevant locations for gcs/s3/blob etc

Alternatively, we could use a k8s service account and mount them in the right place in the pod for s3/gcs/blob. What do you think?

from kserve.

yuzisun avatar yuzisun commented on July 26, 2024

With our model once secretRef annotation is changed both default and canary get updated, so user will take an outage for a bad secret rollout. Maybe we can support envs on default/canary spec and pull secrets as envs which works for s3 but not sure for other storage.

We may want to not specify s3 and just mount the secret to all relevant locations for gcs/s3/blob etc
Alternatively, we could use a k8s service account and mount them in the right place in the pod for s3/gcs/blob. What do you think?

Can you elaborate these more not sure if I understand this.

from kserve.

yuzisun avatar yuzisun commented on July 26, 2024

/assign @yuzisun

from kserve.

yuzisun avatar yuzisun commented on July 26, 2024

Discussed with @ellis-bigelow as a first pass we can add service account to the spec to which user adds the secrets for gcs/s3 or other identities.

from kserve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.