instancetype

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

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 ENILimitedPods(ctx context.Context, info *ec2.InstanceTypeInfo) *resource.Quantity

Types

type NetworkCard

type NetworkCard struct {
	// max number of interfaces supported per card
	MaximumNetworkInterfaces int64
	// the index of current card
	NetworkCardIndex   int64
	NetworkPerformance string
}

type Provider

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

func NewProvider

func NewProvider(region string, cache *cache.Cache, ec2api ec2iface.EC2API, subnetProvider *subnet.Provider,
	unavailableOfferingsCache *awscache.UnavailableOfferings, pricingProvider *pricing.Provider) *Provider

func (*Provider) GetInstanceTypes

func (p *Provider) GetInstanceTypes(ctx context.Context) ([]*ec2.InstanceTypeInfo, error)

GetInstanceTypes retrieves all instance types from the ec2 DescribeInstanceTypes API using some opinionated filters

func (*Provider) List

func (*Provider) LivenessProbe

func (p *Provider) LivenessProbe(req *http.Request) error

type VPCLimits

type VPCLimits struct {
	Interface               int
	IPv4PerInterface        int
	IsTrunkingCompatible    bool
	BranchInterface         int
	NetworkCards            []NetworkCard
	DefaultNetworkCardIndex int
	Hypervisor              string
	IsBareMetal             bool
}

Jump to

Keyboard shortcuts

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