Documentation ¶
Index ¶
- Constants
- type ServiceBuilder
- func (c *ServiceBuilder) CreateExplainerService(name string, metadata metav1.ObjectMeta, explainerSpec *v1alpha2.ExplainerSpec, ...) (*knservingv1.Service, error)
- func (c *ServiceBuilder) CreateInferenceServiceComponent(isvc *v1alpha2.InferenceService, component constants.InferenceServiceComponent, ...) (*knservingv1.Service, error)
- func (c *ServiceBuilder) CreatePredictorService(name string, metadata metav1.ObjectMeta, predictorSpec *v1alpha2.PredictorSpec, ...) (*knservingv1.Service, error)
- func (c *ServiceBuilder) CreateTransformerService(name string, metadata metav1.ObjectMeta, ...) (*knservingv1.Service, error)
Constants ¶
View Source
const ( // Set to 20% of the resource for main container, InferenceService defaults to 1CPU which is 200m for queue-proxy // https://github.com/knative/serving/blob/1d263950f9f2fea85a4dd394948a029c328af9d9/pkg/reconciler/revision/resources/resourceboundary.go#L30 DefaultQueueSideCarResourcePercentage = "20" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceBuilder ¶
type ServiceBuilder struct {
// contains filtered or unexported fields
}
func NewServiceBuilder ¶
func NewServiceBuilder(client client.Client, config *v1.ConfigMap) *ServiceBuilder
func (*ServiceBuilder) CreateExplainerService ¶
func (c *ServiceBuilder) CreateExplainerService(name string, metadata metav1.ObjectMeta, explainerSpec *v1alpha2.ExplainerSpec, predictorService string) (*knservingv1.Service, error)
func (*ServiceBuilder) CreateInferenceServiceComponent ¶
func (c *ServiceBuilder) CreateInferenceServiceComponent(isvc *v1alpha2.InferenceService, component constants.InferenceServiceComponent, isCanary bool) (*knservingv1.Service, error)
func (*ServiceBuilder) CreatePredictorService ¶
func (c *ServiceBuilder) CreatePredictorService(name string, metadata metav1.ObjectMeta, predictorSpec *v1alpha2.PredictorSpec, isCanary bool) (*knservingv1.Service, error)
func (*ServiceBuilder) CreateTransformerService ¶
func (c *ServiceBuilder) CreateTransformerService(name string, metadata metav1.ObjectMeta, transformerSpec *v1alpha2.TransformerSpec, isCanary bool) (*knservingv1.Service, error)
Click to show internal directories.
Click to hide internal directories.