virtualkubelet

package module
v0.0.0-...-d0e3930 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

README

kok cluster-kubelet

export VKUBELET_POD_IP=192.168.212.211
export APISERVER_CERT_LOCATION=/mnt/d/code/cluster-kubelet/hack/skaffold/virtual-kubelet/vkubelet-mock-0-crt.pem
export APISERVER_KEY_LOCATION=/mnt/d/code/cluster-kubelet/hack/skaffold/virtual-kubelet/vkubelet-mock-0-key.pem
/mnt/d/code/cluster-kubelet/bin/virtual-kubelet --kubeconfig=/root/.kube/config --down-kubeconfig=/mnt/d/code/cluster-kubelet/examples/config --nodename vkubelet-mock-0 --provider kok --startup-timeout 10s --klog.v "2" --klog.logtostderr --log-level debug

kind create cluster --config kind-config-1.yaml --name c1
cp ~/.kube/config /mnt/d/code/cluster-kubelet/examples/config
kind create cluster --config kind-config-2.yaml --name c2

Documentation

Overview

Package virtualkubelet is currently just for providing docs for godoc.

Virtual Kubelet is a project which aims to provide a library that can be consumed by other projects to build a Kubernetes node agent that performs the same basic role as the Kubelet, but fully customize the behavior.

*Note*: Virtual Kubelet is not the Kubelet.

All of the business logic for virtual-kubelet is in the `node` package. The node package has controllers for managing the node in Kubernetes and running scheduled pods against a backend service. The backend service along with the code wrapping what is provided in the node package is what consumers of this project would implement. In the interest of not duplicating examples, please see that package on how to get started using virtual kubelet.

Virtual Kubelet supports propagation of logging and traces through a context. See the "log" and "trace" packages for how to use this.

Errors produced by and consumed from the node package are expected to conform to error types defined in the "errdefs" package in order to be able to understand the kind of failure that occurred and react accordingly.

Directories

Path Synopsis
cmd
Package errdefs defines the error types that are understood by other packages in this project.
Package errdefs defines the error types that are understood by other packages in this project.
internal
manager
Package manager provides access to kubernetes resources for providers.
Package manager provides access to kubernetes resources for providers.
log
Package log defines the interfaces used for logging in virtual-kubelet.
Package log defines the interfaces used for logging in virtual-kubelet.
klogv2
Package klogv2 implements a virtual-kubelet/log.Logger using klogv2 as a backend
Package klogv2 implements a virtual-kubelet/log.Logger using klogv2 as a backend
logrus
Package logrus implements a github.com/kok-stack/cluster-kubelet/log.Logger using Logrus as a backend You can use this by creating a logrus logger and calling `FromLogrus(entry)`.
Package logrus implements a github.com/kok-stack/cluster-kubelet/log.Logger using Logrus as a backend You can use this by creating a logrus logger and calling `FromLogrus(entry)`.
Package node implements the components for operating a node in Kubernetes.
Package node implements the components for operating a node in Kubernetes.
api
Package api implements HTTP handlers for handling requests that the kubelet would normally implement, such as pod logs, exec, etc.
Package api implements HTTP handlers for handling requests that the kubelet would normally implement, such as pod logs, exec, etc.
test
e2e
Package trace abstracts virtual-kubelet's tracing capabilities into a set of interfaces.
Package trace abstracts virtual-kubelet's tracing capabilities into a set of interfaces.
opencensus
Package opencensus implements a github.com/kok-stack/cluster-kubelet/trace.Tracer using opencensus as a backend.
Package opencensus implements a github.com/kok-stack/cluster-kubelet/trace.Tracer using opencensus as a backend.

Jump to

Keyboard shortcuts

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