Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AL2Bootstrapper ¶
type AL2Bootstrapper struct {
// contains filtered or unexported fields
}
func NewAL2Bootstrapper ¶
func NewAL2Bootstrapper(clusterSpec *api.ClusterConfig, ng *api.NodeGroup) AL2Bootstrapper
func (AL2Bootstrapper) UserData ¶
func (b AL2Bootstrapper) UserData() (string, error)
type InstanceTypeInfo ¶
type InstanceTypeInfo struct { // Storage (ephemeral) available (GiB). // Is 0 if not supported or none available. Storage int64 // Max pods per node. MaxPodsPerNode int64 // CPU count. CPU int64 }
InstanceTypeInfo holds minimal instance info required to calculate resources to reserve.
func NewInstanceTypeInfo ¶
func NewInstanceTypeInfo(ec2info *ec2.InstanceTypeInfo) InstanceTypeInfo
NewInstanceTypeInfo creates a simple version of ec2.InstanceTypeInfo that provides functions to calculate defaults.
func (InstanceTypeInfo) DefaultCPUToReserve ¶
func (i InstanceTypeInfo) DefaultCPUToReserve() string
DefaultCPUToReserve returns the millicores to reserve.
See https://github.com/awslabs/amazon-eks-ami/blob/ff690788dfaf399e6919eebb59371ee923617df4/files/bootstrap.sh#L183-L208 which takes it form https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#node_allocatable
6% of the first core 1% of the next core (up to 2 cores) 0.5% of the next 2 cores (up to 4 cores) 0.25% of any cores above 4 cores
func (InstanceTypeInfo) DefaultMemoryToReserve ¶
func (i InstanceTypeInfo) DefaultMemoryToReserve() string
DefaultMemoryToReserve returns how much memory to reserve.
func (InstanceTypeInfo) DefaultStorageToReserve ¶
func (i InstanceTypeInfo) DefaultStorageToReserve() string
DefaultStorageToReserve returns how much storage to reserve.
See https://github.com/awslabs/amazon-eks-ami/blob/ff690788dfaf399e6919eebb59371ee923617df4/files/bootstrap.sh#L306 This is always 1GiB
type UbuntuBootstrapper ¶
type UbuntuBootstrapper struct {
// contains filtered or unexported fields
}
func NewUbuntuBootstrapper ¶
func NewUbuntuBootstrapper(clusterSpec *api.ClusterConfig, ng *api.NodeGroup) UbuntuBootstrapper
func (UbuntuBootstrapper) UserData ¶
func (b UbuntuBootstrapper) UserData() (string, error)