Documentation
¶
Index ¶
- Constants
- func AzureContainenrInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
- func FargateInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
- func GCEContainenrInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
- func IsUnsupportedInstance(instanceType string) bool
- func ResourcesToContainerInstance(rs *api.ResourceSpec) (int64, int64, error)
- func ResourcesToInstanceType(ps *api.PodSpec) (string, *bool, error)
- func Setup(cloud, region, zone, defaultInstanceType string) error
- type CustomInstanceData
- type CustomInstanceParameters
- type InstanceData
Constants ¶
View Source
const ( // VCPU is one virtual CPU core in EC2. VCPU int64 = 1024 // MiB is 2^20 bytes. MiB int64 = 1024 * 1024 // GiB is 2^30 bytes. GiB int64 = 1024 * MiB )
Variables ¶
This section is empty.
Functions ¶
func AzureContainenrInstanceSelector ¶
func AzureContainenrInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
func FargateInstanceSelector ¶
func FargateInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
func GCEContainenrInstanceSelector ¶
func GCEContainenrInstanceSelector(rs *api.ResourceSpec) (int64, int64, error)
func IsUnsupportedInstance ¶
Used by validation code in Kip
func ResourcesToContainerInstance ¶
func ResourcesToContainerInstance(rs *api.ResourceSpec) (int64, int64, error)
Types ¶
type CustomInstanceData ¶ added in v0.0.8
type CustomInstanceData struct {
InstanceFamily string `json:"instanceFamily"`
BaseMemoryUnit float32 `json:"baseMemoryUnit"`
PricePerCPU float32 `json:"pricePerCPU"`
PricePerGBOfMemory float32 `json:"pricePerGBOfMemory"`
PossibleNumberOfCPUs []float32 `json:"possibleNumberOfCPUs"`
MinimumMemoryPerCPU float32 `json:"minimumMemoryPerCPU"`
MaximumMemoryPerCPU float32 `json:"maximumMemoryPerCPU"`
SupportedGPUTypes map[string]int `json:"supportedGPUTypes"`
}
CustomInstanceData holds instance type information for custom sized instances.
type CustomInstanceParameters ¶ added in v0.0.8
type InstanceData ¶
type InstanceData struct {
InstanceType string `json:"instanceType"`
Price float32 `json:"price"`
GPU int `json:"gpu"`
SupportedGPUTypes map[string]int `json:"supportedGPUTypes"`
Memory float32 `json:"memory"`
CPU float32 `json:"cpu"`
Burstable bool `json:"burstable"`
Baseline float32 `json:"baseline"`
}
have the data in there
Click to show internal directories.
Click to hide internal directories.