Documentation ¶
Index ¶
- Constants
- Variables
- func CanaryExplainerServiceName(name string) string
- func CanaryPredictorServiceName(name string) string
- func CanaryServiceName(name string, endpoint InferenceServiceEndpoint) string
- func CanaryTransformerServiceName(name string) string
- func DefaultExplainerServiceName(name string) string
- func DefaultPredictorServiceName(name string) string
- func DefaultServiceName(name string, endpoint InferenceServiceEndpoint) string
- func DefaultTransformerServiceName(name string) string
- func ExplainPrefix(name string) string
- func ExplainRouteName(name string) string
- func PredictPrefix(name string) string
- func PredictRouteName(name string) string
- func PredictorURL(metadata v1.ObjectMeta, isCanary bool) string
- func RouteName(name string, verb InferenceServiceVerb) string
- func ServiceURL(name string, hostName string) string
- func VirtualServiceHostname(name string, predictorHostName string) string
- type InferenceServiceEndpoint
- type InferenceServiceVerb
Constants ¶
View Source
const ( PredictorConfigKeyName = "predictors" TransformerConfigKeyName = "transformers" ExplainerConfigKeyName = "explainers" )
ConfigMap Keys
View Source
const ( InferenceServiceDefault = "default" InferenceServiceCanary = "canary" )
InferenceService default/canary constants
View Source
const ( ArgumentModelName = "--model_name" ArgumentPredictorHost = "--predictor_host" )
InferenceService model server args
View Source
const (
CustomSpecStorageUriEnvVarKey = "STORAGE_URI"
)
InferenceService Environment Variables
View Source
const DefaultModelLocalMountPath = "/mnt/models"
DefaultModelLocalMountPath is where models will be mounted by the storage-initializer
View Source
const (
NvidiaGPUResourceType = "nvidia.com/gpu"
)
GPU Constants
Variables ¶
View Source
var ( KFServingName = "kfserving" KFServingAPIGroupName = "serving.kubeflow.org" KFServingNamespace = getEnvOrDefault("POD_NAMESPACE", "kfserving-system") )
KFServing Constants
View Source
var ( InferenceServiceName = "inferenceservice" InferenceServiceAPIName = "inferenceservices" InferenceServicePodLabelKey = KFServingAPIGroupName + "/" + InferenceServiceName InferenceServiceConfigMapName = "inferenceservice-config" )
InferenceService Constants
View Source
var ( InferenceServiceInternalAnnotationsPrefix = "internal." + KFServingAPIGroupName StorageInitializerSourceUriInternalAnnotationKey = InferenceServiceInternalAnnotationsPrefix + "/storage-initializer-sourceuri" )
InferenceService Internal Annotations
View Source
var ( ControllerLabelName = KFServingName + "-controller-manager" DefaultTimeout int64 = 10 DefaultScalingTarget = "1" )
Controller Constants
View Source
var ( WebhookServerName = KFServingName + "-webhook-server" WebhookServerServiceName = WebhookServerName + "-service" WebhookServerSecretName = WebhookServerName + "-secret" InferenceServiceValidatingWebhookConfigName = strings.Join([]string{InferenceServiceName, KFServingAPIGroupName}, ".") InferenceServiceMutatingWebhookConfigName = strings.Join([]string{InferenceServiceName, KFServingAPIGroupName}, ".") InferenceServiceValidatingWebhookName = strings.Join([]string{InferenceServiceName, WebhookServerName, "validator"}, ".") InferenceServiceDefaultingWebhookName = strings.Join([]string{InferenceServiceName, WebhookServerName, "defaulter"}, ".") PodMutatorWebhookName = strings.Join([]string{InferenceServiceName, WebhookServerName, "pod-mutator"}, ".") WebhookFailurePolicy = v1beta1.Fail )
Webhook Constants
View Source
var (
InferenceServiceGKEAcceleratorAnnotationKey = KFServingAPIGroupName + "/gke-accelerator"
)
InferenceService Annotations
Functions ¶
func CanaryServiceName ¶
func CanaryServiceName(name string, endpoint InferenceServiceEndpoint) string
func DefaultServiceName ¶
func DefaultServiceName(name string, endpoint InferenceServiceEndpoint) string
func ExplainPrefix ¶
func ExplainRouteName ¶
func PredictPrefix ¶
func PredictRouteName ¶
func PredictorURL ¶
func PredictorURL(metadata v1.ObjectMeta, isCanary bool) string
func RouteName ¶
func RouteName(name string, verb InferenceServiceVerb) string
func ServiceURL ¶
func VirtualServiceHostname ¶
Types ¶
type InferenceServiceEndpoint ¶
type InferenceServiceEndpoint string
const ( Predictor InferenceServiceEndpoint = "predictor" Explainer InferenceServiceEndpoint = "explainer" Transformer InferenceServiceEndpoint = "transformer" )
InferenceService Endpoint enums
func (InferenceServiceEndpoint) String ¶
func (e InferenceServiceEndpoint) String() string
type InferenceServiceVerb ¶
type InferenceServiceVerb string
const ( Predict InferenceServiceVerb = "predict" Explain InferenceServiceVerb = "explain" )
InferenceService verb enums
func (InferenceServiceVerb) String ¶
func (v InferenceServiceVerb) String() string
Click to show internal directories.
Click to hide internal directories.