Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTaintEffect = corev1.TaintEffectPreferNoSchedule DefaultTaintKey = "virtual-kubelet.io/provider" )
Default taint values
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "virtual-kubelet", Short: "virtual-kubelet provides a virtual kubelet interface for your kubernetes cluster.", Long: `virtual-kubelet implements the Kubelet interface with a pluggable backend implementation allowing users to create kubernetes nodes without running the kubelet. This allows users to schedule kubernetes workloads on nodes that aren't running Kubernetes.`, Run: func(cmd *cobra.Command, args []string) { ctx := context.Background() f, err := vkubelet.New(ctx, vkubelet.Config{ Client: k8sClient, Namespace: kubeNamespace, NodeName: nodeName, Taint: taint, MetricsAddr: metricsAddr, Provider: p, ResourceManager: rm, APIConfig: apiConfig, }) if err != nil { log.L.WithError(err).Fatal("Error initializing virtual kubelet") } if err := f.Run(ctx); err != nil { log.L.Fatal(err) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.