Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientset ¶
func GetClientset(kubeconfig string) (*kubernetes.Clientset, error)
GetClientset returns kubernetes clientset built based on either kubectl config file or for in-cluster mode on a mounted service account token
func GetContainerPID ¶
GetContainerPID returns PID of a container specified by its ID
Types ¶
type PodController ¶
type PodController interface {
Start(<-chan struct{}) error
}
PodController defines interface for managing pod controller
func NewPodController ¶
func NewPodController(kubeClientset kubernetes.Interface, podInformer corev1informer.PodInformer, localNodeIP string, ns netns.NsHandle, links []netlink.Link) PodController
NewPodController returns a new serices controller wathing and calling nic methods for pod add/delete/update events.
Click to show internal directories.
Click to hide internal directories.