package
0.21.4
Repository: https://github.com/zexi/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package exec scans and loads networking plugins that are installed under /usr/libexec/kubernetes/kubelet-plugins/net/exec/ The layout convention for a plugin is: plugin-name/ (plugins have to be directories first) plugin-name/plugin-name (executable that will be called out, see Vendoring Note for more nuances) plugin-name/<other-files> where, 'executable' has the following requirements: - should have exec permissions - should give non-zero exit code on failure, and zero on sucess - the arguments will be <action> <pod_namespace> <pod_name> <docker_id_of_infra_container> whereupon, <action> will be one of: - init, called when the kubelet loads the plugin - setup, called after the infra container of a pod is created, but before other containers of the pod are created - teardown, called before the pod infra container is killed As the executables are called, the file-descriptors stdin, stdout, stderr remain open.

# Functions

InitNetworkPlugin inits the plugin that matches networkPluginName.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Interfaces

Host is an interface that plugins can use to access the kubelet.
Plugin is an interface to network plugins for the kubelet.