Documentation ¶
Index ¶
- Constants
- Variables
- func ENILimitedPods(ctx context.Context, info *ec2.InstanceTypeInfo) *resource.Quantity
- func NewInstanceType(ctx context.Context, info *ec2.InstanceTypeInfo, region string, ...) *cloudprovider.InstanceType
- type DefaultProvider
- func (p *DefaultProvider) List(ctx context.Context, kc *v1.KubeletConfiguration, nodeClass *v1.EC2NodeClass) ([]*cloudprovider.InstanceType, error)
- func (p *DefaultProvider) LivenessProbe(req *http.Request) error
- func (p *DefaultProvider) Reset()
- func (p *DefaultProvider) UpdateInstanceTypeOfferings(ctx context.Context) error
- func (p *DefaultProvider) UpdateInstanceTypes(ctx context.Context) error
- type NetworkCard
- type Provider
- type VPCLimits
Constants ¶
View Source
const ( MemoryAvailable = "memory.available" NodeFSAvailable = "nodefs.available" )
Variables ¶
View Source
var (
InstanceTypeBandwidthMegabits = map[string]int64{}/* 762 elements not displayed */
)
View Source
var Limits = map[string]*VPCLimits{}/* 774 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, region string, blockDeviceMappings []*v1.BlockDeviceMapping, instanceStorePolicy *v1.InstanceStorePolicy, maxPods *int32, podsPerCore *int32, kubeReserved map[string]string, systemReserved map[string]string, evictionHard map[string]string, evictionSoft map[string]string, amiFamily amifamily.AMIFamily, offerings cloudprovider.Offerings) *cloudprovider.InstanceType
Types ¶
type DefaultProvider ¶ added in v0.36.0
type DefaultProvider struct {
// contains filtered or unexported fields
}
func NewDefaultProvider ¶ added in v0.36.0
func NewDefaultProvider(region string, instanceTypesCache *cache.Cache, ec2api ec2iface.EC2API, subnetProvider subnet.Provider, unavailableOfferingsCache *awscache.UnavailableOfferings, pricingProvider pricing.Provider) *DefaultProvider
func (*DefaultProvider) List ¶ added in v0.36.0
func (p *DefaultProvider) List(ctx context.Context, kc *v1.KubeletConfiguration, nodeClass *v1.EC2NodeClass) ([]*cloudprovider.InstanceType, error)
func (*DefaultProvider) LivenessProbe ¶ added in v0.36.0
func (p *DefaultProvider) LivenessProbe(req *http.Request) error
func (*DefaultProvider) Reset ¶ added in v0.37.0
func (p *DefaultProvider) Reset()
func (*DefaultProvider) UpdateInstanceTypeOfferings ¶ added in v0.37.0
func (p *DefaultProvider) UpdateInstanceTypeOfferings(ctx context.Context) error
func (*DefaultProvider) UpdateInstanceTypes ¶ added in v0.37.0
func (p *DefaultProvider) UpdateInstanceTypes(ctx context.Context) error
type NetworkCard ¶
type Provider ¶
type Provider interface { LivenessProbe(*http.Request) error List(context.Context, *v1.KubeletConfiguration, *v1.EC2NodeClass) ([]*cloudprovider.InstanceType, error) UpdateInstanceTypes(ctx context.Context) error UpdateInstanceTypeOfferings(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.