Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.59 KB

annotations.md

File metadata and controls

48 lines (32 loc) · 1.59 KB

Annotation Based Configuration

You can configure aspects of Seldon Core via annotations in the SeldonDeployment resource and also the optional API OAuth Gateway. Please create an issue if you would like some configuration added.

SeldonDeployment Annotations

gRPC API Control

  • seldon.io/grpc-max-message-size : Maximum gRPC message size
    • Locations : SeldonDeployment.spec.annotations
    • Example
  • seldon.io/grpc-read-timeout : gRPC read timeout
    • Locations : SeldonDeployment.spec.annotations
    • Example

REST API Control

  • seldon.io/rest-read-timeout : REST read timeout
    • Locations : SeldonDeployment.spec.annotations
    • Example
  • seldon.io/rest-connection-timeout : REST connection timeout
    • Locations : SeldonDeployment.spec.annotations
    • Example

API OAuth Gateway Annotations

The API OAuth Gateway, if used, can also have the following annotations:

gRPC API Control

  • seldon.io/grpc-max-message-size : Maximum gRPC message size
  • seldon.io/grpc-read-timeout : gRPC read timeout

REST API Control

  • seldon.io/rest-read-timeout : REST read timeout
  • seldon.io/rest-connection-timeout : REST connection timeout

Control via Helm

The API OAuth Gateway annotations can be set via Helm via the seldon-core values file, for example:

apife:
  annotations:
      seldon.io/grpc-max-message-size: "10485760"