native-kubelet

module
v0.0.0-...-8fd29ad Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0

README

native-kubelet

native-kubelet

apt install libbtrfs-dev -y
apt install golang-github-proglottis-gpgme-dev -y
apt install -y pkg-config
apt install libdevmapper-dev -y

docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 14250:14250 -p 9411:9411 jaegertracing/all-in-one:1.22

kind create cluster --config kind-config-1.yaml --name c1

export VKUBELET_POD_IP=192.168.212.214
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
export JAEGER_ENDPOINT=127.0.0.1:14268

/mnt/d/code/native-kubelet/bin/virtual-kubelet --provider-config=/mnt/d/code/native-kubelet/example/config.json --kubeconfig=/root/.kube/config --nodename vkubelet-mock-0 --provider native-kubelet --startup-timeout 10s --klog.v "2" --klog.logtostderr --log-level debug --trace-exporter=jaeger --trace-sample-rate=always

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.
example
internal
ext
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 If you want this to be the default logger for virtual-kubelet, set `log.L` to the value returned by `New(fields)` We recommend reading the klog conventions to build a better understanding of levels and when they should apply https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md
Package klogv2 implements a virtual-kubelet/log.Logger using klogv2 as a backend If you want this to be the default logger for virtual-kubelet, set `log.L` to the value returned by `New(fields)` We recommend reading the klog conventions to build a better understanding of levels and when they should apply https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/logging.md
logrus
Package logrus implements a github.com/kok-stack/native-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/native-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/native-kubelet/trace.Tracer using opencensus as a backend.
Package opencensus implements a github.com/kok-stack/native-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