Documentation ¶
Overview ¶
Copyright 2019 kubeflow.org.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 kubeflow.org.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( GkeAcceleratorNodeSelector = "cloud.google.com/gke-accelerator" NvidiaGPUTaintValue = "present" )
These constants are used for detecting and applying GPU selectors
const ( LoggerConfigMapKeyName = "logger" LoggerArgumentLogUrl = "--log-url" LoggerArgumentSourceUri = "--source-uri" LoggerArgumentMode = "--log-mode" LoggerArgumentInferenceService = "--inference-service" LoggerArgumentNamespace = "--namespace" LoggerArgumentEndpoint = "--endpoint" LoggerArgumentComponent = "--component" )
const ( BatcherContainerName = "batcher" BatcherConfigMapKeyName = "batcher" BatcherEnableFlag = "--enable-batcher" BatcherArgumentMaxBatchSize = "--max-batchsize" BatcherArgumentMaxLatency = "--max-latency" BatcherArgumentTimeout = "--timeout" )
const ( StorageInitializerContainerName = "storage-initializer" StorageInitializerConfigMapKeyName = "storageInitializer" StorageInitializerVolumeName = "kfserving-provision-location" StorageInitializerContainerImage = "gcr.io/kfserving/storage-initializer" StorageInitializerContainerImageVersion = "latest" PvcURIPrefix = "pvc://" PvcSourceMountName = "kfserving-pvc-source" PvcSourceMountPath = "/mnt/pvc" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AgentConfig ¶ added in v0.5.0
type AgentInjector ¶ added in v0.5.0
type AgentInjector struct {
// contains filtered or unexported fields
}
func (*AgentInjector) InjectAgent ¶ added in v0.5.0
func (ag *AgentInjector) InjectAgent(pod *v1.Pod) error
type BatcherConfig ¶ added in v0.4.0
type BatcherInjector ¶ added in v0.4.0
type BatcherInjector struct {
// contains filtered or unexported fields
}
func (*BatcherInjector) InjectBatcher ¶ added in v0.4.0
func (il *BatcherInjector) InjectBatcher(pod *v1.Pod) error
type LoggerConfig ¶
type Mutator ¶
Mutator is a webhook that injects incoming pods
func (*Mutator) InjectClient ¶
InjectClient injects the client.
type StorageInitializerInjector ¶
type StorageInitializerInjector struct {
// contains filtered or unexported fields
}
func (*StorageInitializerInjector) InjectStorageInitializer ¶
func (mi *StorageInitializerInjector) InjectStorageInitializer(pod *v1.Pod) error
InjectStorageInitializer injects an init container to provision model data for the serving container in a unified way across storage tech by injecting a provisioning INIT container. This is a work around because KNative does not support INIT containers: https://github.com/knative/serving/issues/4307