constants

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KFServiceDefault = "default"
	KFServiceCanary  = "canary"
)

KFService default/canary constants

View Source
const (
	ModelServerArgsModelName     = "--model_name"
	ModelServerArgsPredictorHost = "--predictor_host"
)

KFService model server args

View Source
const (
	CustomSpecStorageUriEnvVarKey = "STORAGE_URI"
)

KFService 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 (
	KFServiceName          = "kfservice"
	KFServiceAPIName       = "kfservices"
	KFServicePodLabelKey   = KFServingAPIGroupName + "/" + KFServiceName
	KFServiceConfigMapName = "kfservice-config"
)

KFService Constants

View Source
var (
	KFServiceInternalAnnotationsPrefix               = "internal." + KFServingAPIGroupName
	StorageInitializerSourceUriInternalAnnotationKey = KFServiceInternalAnnotationsPrefix + "/storage-initializer-sourceuri"
)

KFService Internal Annotations

View Source
var (
	ControllerLabelName        = KFServingName + "-controller-manager"
	DefaultTimeout       int64 = 300
	DefaultScalingTarget       = "1"
)

Controller Constants

View Source
var (
	WebhookServerName                    = KFServingName + "-webhook-server"
	WebhookServerServiceName             = WebhookServerName + "-service"
	WebhookServerSecretName              = WebhookServerName + "-secret"
	KFServiceValidatingWebhookConfigName = strings.Join([]string{KFServiceName, KFServingAPIGroupName}, ".")
	KFServiceMutatingWebhookConfigName   = strings.Join([]string{KFServiceName, KFServingAPIGroupName}, ".")
	KFServiceValidatingWebhookName       = strings.Join([]string{KFServiceName, WebhookServerName, "validator"}, ".")
	KFServiceDefaultingWebhookName       = strings.Join([]string{KFServiceName, WebhookServerName, "defaulter"}, ".")
	DeploymentMutatorWebhookName         = strings.Join([]string{KFServiceName, WebhookServerName, "deployment-mutator"}, ".")
	WebhookFailurePolicy                 = v1beta1.Fail
)

Webhook Constants

View Source
var (
	KFServiceGKEAcceleratorAnnotationKey = KFServingAPIGroupName + "/gke-accelerator"
)

KFService Annotations

Functions

func CanaryExplainerServiceName added in v0.1.3

func CanaryExplainerServiceName(name string) string

func CanaryPredictorServiceName added in v0.1.3

func CanaryPredictorServiceName(name string) string

func CanaryServiceName added in v0.1.3

func CanaryServiceName(name string, endpoint KFServiceEndpoint) string

func CanaryTransformerServiceName added in v0.1.3

func CanaryTransformerServiceName(name string) string

func DefaultExplainerServiceName added in v0.1.3

func DefaultExplainerServiceName(name string) string

func DefaultPredictorServiceName added in v0.1.3

func DefaultPredictorServiceName(name string) string

func DefaultServiceName added in v0.1.3

func DefaultServiceName(name string, endpoint KFServiceEndpoint) string

func DefaultTransformerServiceName added in v0.1.3

func DefaultTransformerServiceName(name string) string

func ExplainRouteName added in v0.1.3

func ExplainRouteName(name string) string

func PredictRouteName added in v0.1.3

func PredictRouteName(name string) string

func RouteName added in v0.1.3

func RouteName(name string, verb KFServiceVerb) string

Types

type KFServiceEndpoint added in v0.1.3

type KFServiceEndpoint string
const (
	Predictor   KFServiceEndpoint = "predictor"
	Explainer   KFServiceEndpoint = "explainer"
	Transformer KFServiceEndpoint = "transformer"
)

KFService Endpoint enums

func (KFServiceEndpoint) String added in v0.1.3

func (e KFServiceEndpoint) String() string

type KFServiceVerb added in v0.1.3

type KFServiceVerb string
const (
	Predict KFServiceVerb = "predict"
	Explain KFServiceVerb = "explain"
)

KFService verb enums

func (KFServiceVerb) String added in v0.1.3

func (v KFServiceVerb) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL