Documentation ¶
Index ¶
- Constants
- func SlbName(svcName, namespace, uid string) string
- type Cloud
- func (cloud *Cloud) Clusters() (cloudprovider.Clusters, bool)
- func (cloud *Cloud) HasClusterID() bool
- func (cloud *Cloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
- func (cloud *Cloud) Instances() (cloudprovider.Instances, bool)
- func (cloud *Cloud) InstancesV2() (cloudprovider.InstancesV2, bool)
- func (cloud *Cloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
- func (cloud *Cloud) ProviderName() string
- func (cloud *Cloud) Routes() (cloudprovider.Routes, bool)
- func (cloud *Cloud) Zones() (cloudprovider.Zones, bool)
- type Clusters
- type InformerUser
- type Instances
- func (i *Instances) AddSSHKeyToAllInstances(ctx context.Context, user string, keyData []byte) error
- func (i *Instances) CurrentNodeName(ctx context.Context, hostname string) (types.NodeName, error)
- func (i *Instances) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error)
- func (i *Instances) InstanceID(ctx context.Context, nodeName types.NodeName) (string, error)
- func (i *Instances) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error)
- func (i *Instances) InstanceType(ctx context.Context, name types.NodeName) (string, error)
- func (i *Instances) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error)
- func (i *Instances) NodeAddresses(ctx context.Context, name types.NodeName) ([]v1.NodeAddress, error)
- func (i *Instances) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]v1.NodeAddress, error)
- type InstancesV2
- type LoadBalancer
- func (l *LoadBalancer) EnsureLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)
- func (l *LoadBalancer) EnsureLoadBalancerDeleted(ctx context.Context, clusterName string, service *v1.Service) error
- func (l *LoadBalancer) GetLoadBalancer(ctx context.Context, clusterName string, service *v1.Service) (status *v1.LoadBalancerStatus, exists bool, err error)
- func (l *LoadBalancer) GetLoadBalancerName(ctx context.Context, clusterName string, service *v1.Service) string
- func (l *LoadBalancer) UpdateLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) error
- type PVLabeler
- type Routes
- func (r *Routes) CreateRoute(ctx context.Context, clusterName string, nameHint string, ...) error
- func (r *Routes) DeleteRoute(ctx context.Context, clusterName string, route *cloudprovider.Route) error
- func (r *Routes) ListRoutes(ctx context.Context, clusterName string) ([]*cloudprovider.Route, error)
- type Zones
Constants ¶
View Source
const ( AnnotationLbProtocol = "service.beta.kubernetes.io/cds-load-balancer-protocol" AnnotationLbType = "service.beta.kubernetes.io/cds-load-balancer-types" AnnotationLbSpec = "service.beta.kubernetes.io/cds-load-balancer-specification" AnnotationLbBandwidth = "service.beta.kubernetes.io/cds-load-balancer-bandwidth" AnnotationLbEip = "service.beta.kubernetes.io/cds-load-balancer-eip" AnnotationLbAlgorithm = "service.beta.kubernetes.io/cds-load-balancer-algorithm" AnnotationLbSubjectId = "service.beta.kubernetes.io/cds-load-balancer-subject-id" AnnotationLbListen = "service.eks.listen" LbNetTypeWan = "wan" LbNetTypeWanLan = "wan_lan" LbBillingMethodCostPay = "0" // 按需计费 LabelNodeAz = "node.kubernetes.io/node.az" LabelNodeAzCode = "node.kubernetes.io/node.az-code" LbTaskSuccess = "success" LbTakError = "error" BillingType = "number" )
View Source
const ( LBSpecStandard = "standard" // 标准型 LBSpecHigh = "high" // 高阶型 LBSpecSuper = "super" // 超强型 LBSpecExtreme = "extreme" // 至强型 LBSpecNameStandard = "标准型" LBSpecNameHigh = "高阶型" LBSpecNameSuper = "超强型" LBSpecNameExtreme = "至强型" )
View Source
const ( IpTypeInternal = "InternalIP" PlatformEks = "eks" UpdateListenFull = "full" // 全量更新 UpdateListenExact = "exact" // 精确更新 RsTypeEks = "eks" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cloud ¶
type Cloud struct { }
func (*Cloud) HasClusterID ¶
func (*Cloud) Initialize ¶
func (cloud *Cloud) Initialize(clientBuilder cloudprovider.ControllerClientBuilder, stop <-chan struct{})
func (*Cloud) InstancesV2 ¶
func (cloud *Cloud) InstancesV2() (cloudprovider.InstancesV2, bool)
func (*Cloud) LoadBalancer ¶
func (cloud *Cloud) LoadBalancer() (cloudprovider.LoadBalancer, bool)
func (*Cloud) ProviderName ¶
type InformerUser ¶
type InformerUser struct { }
func (*InformerUser) SetInformers ¶
func (i *InformerUser) SetInformers(informerFactory informers.SharedInformerFactory)
type Instances ¶
type Instances struct {
// contains filtered or unexported fields
}
func (*Instances) AddSSHKeyToAllInstances ¶
func (*Instances) CurrentNodeName ¶
func (*Instances) InstanceExistsByProviderID ¶
func (*Instances) InstanceID ¶
func (*Instances) InstanceShutdownByProviderID ¶
func (*Instances) InstanceType ¶
func (*Instances) InstanceTypeByProviderID ¶
func (*Instances) NodeAddresses ¶
func (*Instances) NodeAddressesByProviderID ¶
type InstancesV2 ¶
type InstancesV2 struct { }
func (*InstancesV2) InstanceExists ¶
func (*InstancesV2) InstanceMetadata ¶
func (i *InstancesV2) InstanceMetadata(ctx context.Context, node *v1.Node) (*cloudprovider.InstanceMetadata, error)
func (*InstancesV2) InstanceShutdown ¶
type LoadBalancer ¶
type LoadBalancer struct {
// contains filtered or unexported fields
}
func (*LoadBalancer) EnsureLoadBalancer ¶
func (l *LoadBalancer) EnsureLoadBalancer(ctx context.Context, clusterName string, service *v1.Service, nodes []*v1.Node) (*v1.LoadBalancerStatus, error)
EnsureLoadBalancer 创建lb
func (*LoadBalancer) EnsureLoadBalancerDeleted ¶
func (*LoadBalancer) GetLoadBalancer ¶
func (l *LoadBalancer) GetLoadBalancer(ctx context.Context, clusterName string, service *v1.Service) (status *v1.LoadBalancerStatus, exists bool, err error)
GetLoadBalancer 查询lb
func (*LoadBalancer) GetLoadBalancerName ¶
func (l *LoadBalancer) GetLoadBalancerName(ctx context.Context, clusterName string, service *v1.Service) string
GetLoadBalancerName 获取lb名称
type Routes ¶
type Routes struct { }
func (*Routes) CreateRoute ¶
func (*Routes) DeleteRoute ¶
func (*Routes) ListRoutes ¶
type Zones ¶
type Zones struct { }
func (*Zones) GetZoneByNodeName ¶
func (*Zones) GetZoneByProviderID ¶
Click to show internal directories.
Click to hide internal directories.