deployment

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	GkeAcceleratorNodeSelector = "cloud.google.com/gke-accelerator"
	NvidiaGPUTaintValue        = "present"
)

These constants are used for detecting and applying GPU selectors

View Source
const (
	ModelInitializerContainerName         = "model-initializer"
	ModelInitializerConfigMapKeyName      = "modelInitializer"
	ModelInitializerVolumeName            = "kfserving-provision-location"
	ModelInitializerContainerImage        = "gcr.io/kfserving/model-initializer"
	ModelInitializerContainerImageVersion = "latest"
	PvcURIPrefix                          = "pvc://"
	PvcSourceMountName                    = "kfserving-pvc-source"
	PvcSourceMountPath                    = "/mnt/pvc"
	UserContainerName                     = "user-container"
)

Variables

This section is empty.

Functions

func InjectGKEAcceleratorSelector

func InjectGKEAcceleratorSelector(deployment *appsv1.Deployment) error

Types

type ModelInitializerConfig added in v0.1.1

type ModelInitializerConfig struct {
	Image string `json:"image"`
}

type ModelInitializerInjector

type ModelInitializerInjector struct {
	// contains filtered or unexported fields
}

func (*ModelInitializerInjector) InjectModelInitializer

func (mi *ModelInitializerInjector) InjectModelInitializer(deployment *appsv1.Deployment) error

InjectModelInitializer 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

type Mutator

type Mutator struct {
	Client  client.Client
	Decoder types.Decoder
}

Mutator is a webhook that injects incoming pods

func (*Mutator) Handle

func (mutator *Mutator) Handle(ctx context.Context, req types.Request) types.Response

Handle decodes the incoming Pod and executes mutation logic.

Jump to

Keyboard shortcuts

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