Documentation ¶
Overview ¶
Package root provides methods to build and start the virtual-kubelet.
Index ¶
Constants ¶
View Source
const ( // CertificateTypeKubelet -> the kubelet certificate is requested to be signed by kubernetes.io/kubelet-serving. CertificateTypeKubelet = "kubelet" // CertificateTypeAWS -> the kubelet certificate is requested to be signed by beta.eks.amazonaws.com/app-serving. CertificateTypeAWS = "aws" // CertificateTypeSelfSigned -> the kubelet certificate is self signed. CertificateTypeSelfSigned = "self-signed" )
View Source
const ( DefaultNodeName = "virtual-kubelet" DefaultInformerResyncPeriod = 10 * time.Hour DefaultListenPort = 10250 DefaultNodePingTimeout = 1 * time.Second DefaultNodeCheckNetwork = true )
Defaults for root command options.
Variables ¶
View Source
var DefaultReflectorsTypes = map[resources.ResourceReflected]vkv1alpha1.ReflectionType{ resources.Pod: vkv1alpha1.CustomLiqo, resources.Service: vkv1alpha1.DenyList, resources.Ingress: vkv1alpha1.DenyList, resources.ConfigMap: vkv1alpha1.DenyList, resources.Secret: vkv1alpha1.DenyList, resources.ServiceAccount: vkv1alpha1.CustomLiqo, resources.PersistentVolumeClaim: vkv1alpha1.CustomLiqo, resources.Event: vkv1alpha1.DenyList, }
DefaultReflectorsTypes contains the default type of reflection for each reflected resource.
View Source
var DefaultReflectorsWorkers = map[resources.ResourceReflected]uint{ resources.Pod: 10, resources.Service: 3, resources.EndpointSlice: 10, resources.Ingress: 3, resources.ConfigMap: 3, resources.Secret: 3, resources.ServiceAccount: 3, resources.PersistentVolumeClaim: 3, resources.Event: 3, }
DefaultReflectorsWorkers contains the default number of workers for each reflected resource.
Functions ¶
func InstallFlags ¶
InstallFlags configures the virtual kubelet flags.
Types ¶
type Opts ¶
type Opts struct { HomeKubeconfig string RemoteKubeconfigSecretName string // Node name to use when creating a node in Kubernetes NodeName string // PodName to use when holding the virtual-kubelet lease PodName string TenantNamespace string LiqoNamespace string InformerResyncPeriod time.Duration HomeCluster argsutils.ClusterIDFlags ForeignCluster argsutils.ClusterIDFlags DisableIPReflection bool LocalPodCIDR string // Sets the addresses to listen for requests from the Kubernetes API server NodeIP string ListenPort uint16 CertificateType *argsutils.StringEnum EnableProfiling bool // Number of workers to use for each refleted resource ReflectorsWorkers map[string]*uint // Type of reflection to use for each reflected resource ReflectorsType map[string]*string NodeLeaseDuration time.Duration NodePingInterval time.Duration NodePingTimeout time.Duration NodeCheckNetwork bool NodeExtraAnnotations argsutils.StringMap NodeExtraLabels argsutils.StringMap EnableAPIServerSupport bool EnableStorage bool VirtualStorageClassName string RemoteRealStorageClassName string EnableIngress bool RemoteRealIngressClassName string EnableLoadBalancer bool RemoteRealLoadBalancerClassName string EnableMetrics bool MetricsAddress string HomeAPIServerHost string HomeAPIServerPort string CreateNode bool VirtualKubeletLeaseEnabled bool VirtualKubeletLeaseLeaseDuration time.Duration VirtualKubeletLeaseRenewDeadline time.Duration VirtualKubeletLeaseRetryPeriod time.Duration }
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.