Documentation ¶
Overview ¶
Package root provides methods to build and start the virtual-kubelet.
Index ¶
Constants ¶
View Source
const ( DefaultNodeName = "virtual-kubelet" DefaultInformerResyncPeriod = 10 * time.Hour DefaultListenPort = 10250 DefaultMetricsAddress = ":10255" DefaultPodWorkers = 10 DefaultServiceWorkers = 3 DefaultEndpointSliceWorkers = 10 DefaultIngressWorkers = 3 DefaultConfigMapWorkers = 3 DefaultSecretWorkers = 3 DefaultPersistenVolumeClaimWorkers = 3 DefaultNodePingTimeout = 1 * time.Second )
Defaults for root command options.
Variables ¶
View Source
var AcceptedCiphers = []uint16{ tls.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, tls.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, }
AcceptedCiphers is the list of accepted TLS ciphers, with known weak ciphers elided Note this list should be a moving target.
Functions ¶
func InstallFlags ¶
InstallFlags configures the virtual kubelet flags.
Types ¶
type Opts ¶
type Opts struct { HomeKubeconfig string // Node name to use when creating a node in Kubernetes NodeName string TenantNamespace string InformerResyncPeriod time.Duration HomeCluster discoveryv1alpha1.ClusterIdentity ForeignCluster discoveryv1alpha1.ClusterIdentity LiqoIpamServer string // Sets the port to listen for requests from the Kubernetes API server ListenPort uint16 MetricsAddress string EnableProfiling bool // Number of workers to use to handle pod notifications and resource reflection PodWorkers uint ServiceWorkers uint EndpointSliceWorkers uint IngressWorkers uint ConfigMapWorkers uint SecretWorkers uint PersistentVolumeClaimWorkers uint NodeLeaseDuration time.Duration NodePingInterval time.Duration NodePingTimeout time.Duration NodeExtraAnnotations argsutils.StringMap NodeExtraLabels argsutils.StringMap EnableAPIServerSupport bool EnableStorage bool VirtualStorageClassName string RemoteRealStorageClassName string }
Opts stores all the options for configuring the root virtual-kubelet command. It is used for setting flag values.
Click to show internal directories.
Click to hide internal directories.