constant

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 0 Imported by: 11

Documentation

Index

Constants

View Source
const (
	FinalizerName     string = "finalizer.lb.kubesphere.io/v1alpha1"
	IPAMFinalizerName string = "finalizer.ipam.kubesphere.io/v1alpha1"

	// When used for annotation, it means that the service address is assigned by the openelb
	// When used as a label, it indicates on which node the openelb manager is deployed
	OpenELBAnnotationKey   string = "lb.kubesphere.io/v1alpha1"
	OpenELBAnnotationValue string = "openelb"

	// Indicates the node to which layer2 traffic is sent
	OpenELBLayer2Annotation string = "layer2.openelb.kubesphere.io/v1alpha1"

	NodeProxyTypeAnnotationKey        string = "node-proxy.openelb.kubesphere.io/type"
	NodeProxyTypeDeployment           string = "deployment"
	NodeProxyTypeDaemonSet            string = "daemonset"
	LabelNodeProxyExternalIPPreffered string = "node-proxy.openelb.kubesphere.io/external-ip-preffered"
	LabelNodeProxyExcludeNode         string = "node-proxy.openelb.kubesphere.io/exclude-node"
	NodeProxyExternalIPAnnotationKey  string = "node-proxy.openelb.kubesphere.io/external-ip"
	NodeProxyInternalIPAnnotationKey  string = "node-proxy.openelb.kubesphere.io/internal-ip"
	NameSeparator                     string = "-"
	IPSeparator                       string = ","
	EnvArgSplitter                    string = " "
	NodeProxyWorkloadPrefix           string = "node-proxy-"
	NodeProxyFinalizerName            string = "node-proxy.openelb.kubesphere.io/finalizer"

	KubernetesMasterLabel string = "node-role.kubernetes.io/master"

	OpenELBEIPAnnotationKey         string = "eip.openelb.kubesphere.io/v1alpha1"
	OpenELBEIPAnnotationKeyV1Alpha2 string = "eip.openelb.kubesphere.io/v1alpha2"
	OpenELBEIPAnnotationDefaultPool string = "eip.openelb.kubesphere.io/is-default-eip"
	OpenELBProtocolAnnotationKey    string = "protocol.openelb.kubesphere.io/v1alpha1"

	OpenELBNodeRack string = "openelb.kubesphere.io/rack"
	// TODO: Disable lable modification using webhook
	OpenELBCNI string = "openelb.kubesphere.io/cni"

	OpenELBProtocolBGP    string = "bgp"
	OpenELBProtocolLayer2 string = "layer2"
	OpenELBProtocolDummy  string = "dummy"
	OpenELBProtocolVip    string = "vip"
	OpenELBCNICalico      string = "calico"
	EipRangeSeparator     string = "-"

	OpenELBSpeakerLocker      = "openelb-speaker"
	OpenELBNamespace          = "openelb-system"
	OpenELBVipConfigMap       = "openelb-vip-configmap"
	OpenELBVipName            = "openelb-keepalive-vip"
	OpenELBServiceAccountName = "kube-keepalived-vip"
	EnvOpenELBNamespace       = "OPENELB_NAMESPACE"
	EnvNodeName               = "NODE_NAME"

	// default images and specify images
	OpenELBImagesConfigMap         = "openelb-images"
	NodeProxyConfigMapForwardImage = "forward-image"
	NodeProxyConfigMapProxyImage   = "proxy-image"
	OpenELBKeepAliveImage          = "keepalived-vip-image"
	OpenELBDefaultKeepAliveImage   = "kubesphere/kube-keepalived-vip:0.35" // keepalived image by default
	NodeProxyDefaultForwardImage   = "kubesphere/openelb-forward:master"
	NodeProxyDefaultProxyImage     = "kubesphere/openelb-proxy:master"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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