Documentation ¶
Index ¶
- Constants
- func NewAlibabaCloudProvider() (cloudprovider.CloudProvider, error)
- type EipPlugin
- func (E EipPlugin) Alias() string
- func (E EipPlugin) Init(client client.Client, options cloudprovider.CloudProviderOptions, ...) error
- func (E EipPlugin) Name() string
- func (E EipPlugin) OnPodAdded(client client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)
- func (E EipPlugin) OnPodDeleted(client client.Client, pod *corev1.Pod, ctx context.Context) errors.PluginError
- func (E EipPlugin) OnPodUpdated(client client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)
- type NatGwPlugin
- func (n NatGwPlugin) Alias() string
- func (n NatGwPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ...) error
- func (n NatGwPlugin) Name() string
- func (n NatGwPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)
- func (n NatGwPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) errors.PluginError
- func (n NatGwPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, errors.PluginError)
- type NlbSpPlugin
- func (N *NlbSpPlugin) Alias() string
- func (N *NlbSpPlugin) Init(client client.Client, options cloudprovider.CloudProviderOptions, ...) error
- func (N *NlbSpPlugin) Name() string
- func (N *NlbSpPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
- func (N *NlbSpPlugin) OnPodDeleted(client client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError
- func (N *NlbSpPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
- type Provider
- type SlbPlugin
- func (s *SlbPlugin) Alias() string
- func (s *SlbPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ...) error
- func (s *SlbPlugin) Name() string
- func (s *SlbPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
- func (s *SlbPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError
- func (s *SlbPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
- type SlbSpPlugin
- func (s *SlbSpPlugin) Alias() string
- func (s *SlbSpPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ...) error
- func (s *SlbSpPlugin) Name() string
- func (s *SlbSpPlugin) OnPodAdded(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
- func (s *SlbSpPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError
- func (s *SlbSpPlugin) OnPodUpdated(c client.Client, pod *corev1.Pod, ctx context.Context) (*corev1.Pod, cperrors.PluginError)
Constants ¶
View Source
const ( EIPNetwork = "AlibabaCloud-EIP" AliasSEIP = "EIP-Network" ReleaseStrategyConfigName = "ReleaseStrategy" PoolIdConfigName = "PoolId" ResourceGroupIdConfigName = "ResourceGroupId" BandwidthConfigName = "Bandwidth" BandwidthPackageIdConfigName = "BandwidthPackageId" ChargeTypeConfigName = "ChargeType" DescriptionConfigName = "Description" WithEIPAnnotationKey = "k8s.aliyun.com/pod-with-eip" ReleaseStrategyAnnotationkey = "k8s.aliyun.com/pod-eip-release-strategy" PoolIdAnnotationkey = "k8s.aliyun.com/eip-public-ip-address-pool-id" ResourceGroupIdAnnotationkey = "k8s.aliyun.com/eip-resource-group-id" BandwidthAnnotationkey = "k8s.aliyun.com/eip-bandwidth" BandwidthPackageIdAnnotationkey = "k8s.aliyun.com/eip-common-bandwidth-package-id" ChargeTypeConfigAnnotationkey = "k8s.aliyun.com/eip-internet-charge-type" EIPNameAnnotationKey = "k8s.aliyun.com/eip-name" EIPDescriptionAnnotationKey = "k8s.aliyun.com/eip-description" )
View Source
const ( NATGWNetwork = "AlibabaCloud-NATGW" AliasNATGW = "NATGW-Network" FixedConfigName = "Fixed" PortsConfigName = "Ports" ProtocolConfigName = "Protocol" DnatAnsKey = "k8s.aliyun.com/pod-dnat" PortsAnsKey = "k8s.aliyun.com/pod-dnat-expose-port" ProtocolAnsKey = "k8s.aliyun.com/pod-dnat-expose-protocol" FixedAnsKey = "k8s.aliyun.com/pod-dnat-fixed" )
View Source
const ( NlbSPNetwork = "AlibabaCloud-NLB-SharedPort" NlbIdsConfigName = "NlbIds" )
View Source
const ( SlbNetwork = "AlibabaCloud-SLB" AliasSLB = "LB-Network" SlbIdsConfigName = "SlbIds" PortProtocolsConfigName = "PortProtocols" SlbListenerOverrideKey = "service.beta.kubernetes.io/alibaba-cloud-loadbalancer-force-override-listeners" SlbIdAnnotationKey = "service.beta.kubernetes.io/alibaba-cloud-loadbalancer-id" SlbIdLabelKey = "service.k8s.alibaba/loadbalancer-id" SvcSelectorKey = "statefulset.kubernetes.io/pod-name" SlbConfigHashKey = "game.kruise.io/network-config-hash" )
View Source
const ( SlbSPNetwork = "AlibabaCloud-SLB-SharedPort" SvcSLBSPLabel = "game.kruise.io/AlibabaCloud-SLB-SharedPort" )
View Source
const (
AlibabaCloud = "AlibabaCloud"
)
View Source
const (
ErrorUpperLimit = "the number of backends supported by slb reaches the upper limit"
)
Variables ¶
This section is empty.
Functions ¶
func NewAlibabaCloudProvider ¶
func NewAlibabaCloudProvider() (cloudprovider.CloudProvider, error)
Types ¶
type EipPlugin ¶ added in v0.5.0
type EipPlugin struct { }
func (EipPlugin) Init ¶ added in v0.5.0
func (E EipPlugin) Init(client client.Client, options cloudprovider.CloudProviderOptions, ctx context.Context) error
func (EipPlugin) OnPodAdded ¶ added in v0.5.0
func (EipPlugin) OnPodDeleted ¶ added in v0.5.0
type NatGwPlugin ¶
type NatGwPlugin struct { }
func (NatGwPlugin) Alias ¶
func (n NatGwPlugin) Alias() string
func (NatGwPlugin) Init ¶
func (n NatGwPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ctx context.Context) error
func (NatGwPlugin) Name ¶
func (n NatGwPlugin) Name() string
func (NatGwPlugin) OnPodAdded ¶
func (NatGwPlugin) OnPodDeleted ¶
func (n NatGwPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) errors.PluginError
func (NatGwPlugin) OnPodUpdated ¶
type NlbSpPlugin ¶ added in v0.6.0
type NlbSpPlugin struct { }
func (*NlbSpPlugin) Alias ¶ added in v0.6.0
func (N *NlbSpPlugin) Alias() string
func (*NlbSpPlugin) Init ¶ added in v0.6.0
func (N *NlbSpPlugin) Init(client client.Client, options cloudprovider.CloudProviderOptions, ctx context.Context) error
func (*NlbSpPlugin) Name ¶ added in v0.6.0
func (N *NlbSpPlugin) Name() string
func (*NlbSpPlugin) OnPodAdded ¶ added in v0.6.0
func (*NlbSpPlugin) OnPodDeleted ¶ added in v0.6.0
func (N *NlbSpPlugin) OnPodDeleted(client client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError
func (*NlbSpPlugin) OnPodUpdated ¶ added in v0.6.0
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) ListPlugins ¶
func (ap *Provider) ListPlugins() (map[string]cloudprovider.Plugin, error)
type SlbPlugin ¶
type SlbPlugin struct {
// contains filtered or unexported fields
}
func (*SlbPlugin) Init ¶
func (s *SlbPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ctx context.Context) error
func (*SlbPlugin) OnPodAdded ¶
func (*SlbPlugin) OnPodDeleted ¶
type SlbSpPlugin ¶
type SlbSpPlugin struct {
// contains filtered or unexported fields
}
func (*SlbSpPlugin) Alias ¶
func (s *SlbSpPlugin) Alias() string
func (*SlbSpPlugin) Init ¶
func (s *SlbSpPlugin) Init(c client.Client, options cloudprovider.CloudProviderOptions, ctx context.Context) error
func (*SlbSpPlugin) Name ¶
func (s *SlbSpPlugin) Name() string
func (*SlbSpPlugin) OnPodAdded ¶
func (*SlbSpPlugin) OnPodDeleted ¶
func (s *SlbSpPlugin) OnPodDeleted(c client.Client, pod *corev1.Pod, ctx context.Context) cperrors.PluginError
func (*SlbSpPlugin) OnPodUpdated ¶
Directories ¶
Path | Synopsis |
---|---|
apis
|
|
v1beta1
Package v1beta1 Package v1 contains API Schema definitions for the alibabacloud v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=alibabacloud.com
|
Package v1beta1 Package v1 contains API Schema definitions for the alibabacloud v1beta1 API group +k8s:deepcopy-gen=package,register +groupName=alibabacloud.com |
Click to show internal directories.
Click to hide internal directories.