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 DefaultMetricsAddr = ":10255" DefaultListenPort = 10250 DefaultPodWorkers = 10 DefaultServiceWorkers = 3 DefaultEndpointSliceWorkers = 10 DefaultConfigMapWorkers = 3 DefaultSecretWorkers = 3 DefaultPersistenVolumeClaimWorkers = 3 DefaultKubeletNamespace = "default" DefaultLiqoIpamServer = consts.NetworkManagerServiceName )
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 ¶
func NewCommand ¶
NewCommand creates a new top-level command. This command is used to start the virtual-kubelet daemon.
func SetDefaultOpts ¶
SetDefaultOpts sets default options for unset values on the passed in option struct. Fields tht are already set will not be modified.
Types ¶
type Opts ¶
type Opts struct { // Sets the port to listen for requests from the Kubernetes API server ListenPort int32 // Node name to use when creating a node in Kubernetes NodeName string HomeKubeconfig string MetricsAddr string // Number of workers to use to handle pod notifications and resource reflection PodWorkers uint ServiceWorkers uint EndpointSliceWorkers uint ConfigMapWorkers uint SecretWorkers uint PersistenVolumeClaimWorkers uint InformerResyncPeriod time.Duration // Startup Timeout is how long to wait for the kubelet to start StartupTimeout time.Duration ForeignCluster discoveryv1alpha1.ClusterIdentity HomeCluster discoveryv1alpha1.ClusterIdentity KubeletNamespace string LiqoIpamServer string Profiling bool NodeExtraAnnotations argsutils.StringMap NodeExtraLabels argsutils.StringMap 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.
You can set the default options by creating a new `Opts` struct and passing it into `SetDefaultOpts`.
Click to show internal directories.
Click to hide internal directories.