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

serviceAccountName has no effect for pre-packaged implementation #1012

Closed
mlegore opened this issue Oct 29, 2019 · 3 comments
Closed

serviceAccountName has no effect for pre-packaged implementation #1012

mlegore opened this issue Oct 29, 2019 · 3 comments
Milestone

Comments

@mlegore
Copy link

mlegore commented Oct 29, 2019

I have observed that creating a SeldonDeployment with TENSORFLOW_SERVING with the serviceAccountName does not update the resulting pod spec with that service account name, it instead uses the default.

The is what my yaml looks like:

apiVersion: machinelearning.seldon.io/v1alpha2
kind: SeldonDeployment
metadata:
  name: tfserving
spec:
  name: tfserving
  predictors:
  - graph:
      serviceAccountName: kf-user
      children: []
      implementation: TENSORFLOW_SERVER
      modelUri: gs://bucketname/SavedModel/v1
      name: model-tfserving
      parameters:
        - name: signature_name
          type: STRING
          value: pooled_output
        - name: model_name
          type: STRING
          value: model-tfserving
    name: default
    replicas: 1
@ukclivecox
Copy link
Contributor

Ther serviceAccount name is actually used for the model init container for downloading the model from the modelUri.

The preferred method at present of adding a serviceAccount to the pod you want the image to run in is to define the PodSpec yourself.

In theory several prePackaged servers could all be placed in the same podSpec so we could have conflicts of which serviceAccount to use if it also applied to the PodSpec.

We can update our docs.

@ukclivecox ukclivecox added this to the 0.5.x milestone Oct 30, 2019
@ukclivecox
Copy link
Contributor

The docs also discuss the use of serviceAccount: https://docs.seldon.io/projects/seldon-core/en/latest/servers/overview.html#prepackaged-model-servers

Please open a new issue if you have problems specifying the serviceAccount in the podSpec itself.

@mlegore
Copy link
Author

mlegore commented Oct 30, 2019

I think I misunderstood what seldon was doing in the background. The model failed to load at the download phase, so it seems like the init download container wasn't using the right service account actually, still a bug, I think @cliveseldon

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

No branches or pull requests

2 participants