Documentation
¶
Index ¶
- Constants
- Variables
- func APIEndpoint(api *spec.API) (string, error)
- func APILoadBalancerURL() (string, error)
- func DefaultVolumes() []kcore.Volume
- func DeleteEvictedPods() error
- func DownloadAPISpec(apiName string, apiID string) (*spec.API, error)
- func DownloadAPISpecs(apiNames []string, apiIDs []string) ([]spec.API, error)
- func DownloadBatchJobSpec(jobKey spec.JobKey) (*spec.BatchJob, error)
- func DownloadTaskJobSpec(jobKey spec.JobKey) (*spec.TaskJob, error)
- func ErrorCortexInstallationBroken() error
- func ErrorHandler(cronName string) func(error)
- func ErrorInvalidOperatorLogLevel(provided string, loglevels []string) error
- func ErrorLoadBalancerInitializing() error
- func FileExistsProbe(fileName string) *kcore.Probe
- func GetJobLogger(jobKey spec.JobKey) (*zap.SugaredLogger, error)
- func GetJobLoggerFromSpec(apiSpec *spec.API, jobKey spec.JobKey) (*zap.SugaredLogger, error)
- func GetRealtimeAPILogger(apiName string, apiID string) (*zap.SugaredLogger, error)
- func GetRealtimeAPILoggerFromSpec(apiSpec *spec.API) (*zap.SugaredLogger, error)
- func InitContainer(api *spec.API) kcore.Container
- func InstanceTelemetryAWS() error
- func InstanceTelemetryGCP() error
- func K8sName(apiName string) string
- func NodeSelectors() map[string]string
- func ONNXPredictorContainers(api *spec.API) ([]kcore.Container, []kcore.Volume)
- func PythonPredictorContainers(api *spec.API) ([]kcore.Container, []kcore.Volume)
- func RequestMonitorContainer(api *spec.API) kcore.Container
- func StreamLogsFromRandomPod(podSearchLabels map[string]string, socket *websocket.Conn)
- func TaskContainers(api *spec.API) ([]kcore.Container, []kcore.Volume)
- func TaskInitContainer(api *spec.API) kcore.Container
- func TensorFlowPredictorContainers(api *spec.API) ([]kcore.Container, []kcore.Volume)
- func UpdateMemoryCapacityConfigMap() (kresource.Quantity, error)
- type DeployedResource
Constants ¶
View Source
const ( ErrCortexInstallationBroken = "operator.cortex_installation_broken" ErrLoadBalancerInitializing = "operator.load_balancer_initializing" ErrInvalidOperatorLogLevel = "operator.invalid_operator_log_level" )
View Source
const ( DefaultPortInt32 = int32(8888) DefaultPortStr = "8888" DefaultRequestMonitorPortStr = "15000" DefaultRequestMonitorPortInt32 = int32(15000) APIContainerName = "api" )
Variables ¶
View Source
var Tolerations = []kcore.Toleration{ { Key: "workload", Operator: kcore.TolerationOpEqual, Value: "true", Effect: kcore.TaintEffectNoSchedule, }, { Key: "nvidia.com/gpu", Operator: kcore.TolerationOpExists, Effect: kcore.TaintEffectNoSchedule, }, { Key: "aws.amazon.com/neuron", Operator: kcore.TolerationOpEqual, Value: "true", Effect: kcore.TaintEffectNoSchedule, }, }
Functions ¶
func APILoadBalancerURL ¶ added in v0.18.0
APILoadBalancerURL returns http endpoint of cluster ingress load balancer
func DefaultVolumes ¶ added in v0.19.0
func DeleteEvictedPods ¶ added in v0.19.0
func DeleteEvictedPods() error
func DownloadAPISpecs ¶
func DownloadBatchJobSpec ¶ added in v0.27.0
func DownloadTaskJobSpec ¶ added in v0.27.0
func ErrorCortexInstallationBroken ¶
func ErrorCortexInstallationBroken() error
func ErrorHandler ¶ added in v0.19.0
func ErrorInvalidOperatorLogLevel ¶ added in v0.27.0
func ErrorLoadBalancerInitializing ¶
func ErrorLoadBalancerInitializing() error
func FileExistsProbe ¶ added in v0.19.0
func GetJobLogger ¶ added in v0.27.0
func GetJobLogger(jobKey spec.JobKey) (*zap.SugaredLogger, error)
func GetJobLoggerFromSpec ¶ added in v0.27.0
func GetRealtimeAPILogger ¶ added in v0.27.0
func GetRealtimeAPILogger(apiName string, apiID string) (*zap.SugaredLogger, error)
func GetRealtimeAPILoggerFromSpec ¶ added in v0.27.0
func GetRealtimeAPILoggerFromSpec(apiSpec *spec.API) (*zap.SugaredLogger, error)
func InstanceTelemetryAWS ¶ added in v0.24.0
func InstanceTelemetryAWS() error
func InstanceTelemetryGCP ¶ added in v0.24.0
func InstanceTelemetryGCP() error
func NodeSelectors ¶ added in v0.28.0
func ONNXPredictorContainers ¶ added in v0.19.0
func PythonPredictorContainers ¶ added in v0.19.0
func RequestMonitorContainer ¶ added in v0.19.0
func StreamLogsFromRandomPod ¶ added in v0.27.0
func TaskContainers ¶ added in v0.27.0
func TensorFlowPredictorContainers ¶ added in v0.19.0
func UpdateMemoryCapacityConfigMap ¶ added in v0.19.0
Types ¶
type DeployedResource ¶ added in v0.19.0
type DeployedResource struct { userconfig.Resource VirtualService *istioclientnetworking.VirtualService }
func (*DeployedResource) ID ¶ added in v0.23.0
func (deployedResourced *DeployedResource) ID() string
Click to show internal directories.
Click to hide internal directories.