Documentation ¶
Index ¶
Constants ¶
View Source
const ( InstanceTypesCacheKey = "types" InstanceTypeOfferingsCacheKey = "offerings" ZonesCacheKey = "zones" )
View Source
const ( MemoryAvailable = "memory.available" NodeFSAvailable = "nodefs.available" )
Variables ¶
View Source
var ( InstanceTypeLabel = "instance_type" InstanceTypeVCPU = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: cloudProviderSubsystem, Name: "instance_type_cpu_cores", Help: "VCPUs cores for a given instance type.", }, []string{ InstanceTypeLabel, }) InstanceTypeMemory = prometheus.NewGaugeVec( prometheus.GaugeOpts{ Namespace: metrics.Namespace, Subsystem: cloudProviderSubsystem, Name: "instance_type_memory_bytes", Help: "Memory, in bytes, for a given instance type.", }, []string{ InstanceTypeLabel, }) )
View Source
var (
InstanceTypeBandwidthMegabits = map[string]int64{}/* 729 elements not displayed */
)
View Source
var Limits = map[string]*VPCLimits{}/* 760 elements not displayed */
VPC Limits and flags for ENI and IPv4 Addresses
Functions ¶
func ENILimitedPods ¶
func NewInstanceType ¶
func NewInstanceType(ctx context.Context, info *ec2.InstanceTypeInfo, kc *corev1beta1.KubeletConfiguration, region string, nodeClass *v1beta1.EC2NodeClass, offerings cloudprovider.Offerings) *cloudprovider.InstanceType
Types ¶
type NetworkCard ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) GetInstanceTypes ¶
GetInstanceTypes retrieves all instance types from the ec2 DescribeInstanceTypes API using some opinionated filters
func (*Provider) List ¶
func (p *Provider) List(ctx context.Context, kc *corev1beta1.KubeletConfiguration, nodeClass *v1beta1.EC2NodeClass) ([]*cloudprovider.InstanceType, error)
Click to show internal directories.
Click to hide internal directories.