ovn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: Apache-2.0 Imports: 23 Imported by: 34

Documentation

Index

Constants

View Source
const (
	// OvnNbctl is the constant string for the ovn-nbctl shell command
	OvnNbctl = "ovn-nbctl"

	// TCP is the constant string for the string "TCP"
	TCP = "TCP"

	// UDP is the constant string for the string "UDP"
	UDP = "UDP"
)

Variables

This section is empty.

Functions

func CreateManagementPort

func CreateManagementPort(nodeName, localSubnet, clusterSubnet string) error

CreateManagementPort creates a logical switch for the node and connect it to the distributed router. This switch will start with one logical port (A OVS internal interface). 1. This logical port is via which a node can access all other nodes and the containers running inside them using the private IP addresses. 2. When this port is created on the master node, the K8s daemons become reachable from the containers without any NAT. 3. The nodes can health-check the pod IP addresses.

Types

type Controller

type Controller struct {
	Kube kube.Interface

	StartPodWatch       func(cache.ResourceEventHandler, func([]interface{}))
	StartEndpointWatch  func(cache.ResourceEventHandler, func([]interface{}))
	StartServiceWatch   func(cache.ResourceEventHandler, func([]interface{}))
	StartPolicyWatch    func(cache.ResourceEventHandler, func([]interface{}))
	StartNamespaceWatch func(cache.ResourceEventHandler, func([]interface{}))
	// contains filtered or unexported fields
}

Controller structure is the object which holds the controls for starting and reacting upon the watched resources (e.g. pods, endpoints)

func (*Controller) Run

func (oc *Controller) Run()

Run starts the actual watching. Also initializes any local structures needed.

func (*Controller) WatchEndpoints

func (oc *Controller) WatchEndpoints()

WatchEndpoints starts the watching of Endpoint resource and calls back the appropriate handler logic

func (*Controller) WatchNamespaces

func (oc *Controller) WatchNamespaces()

WatchNamespaces starts the watching of namespace resource and calls back the appropriate handler logic

func (*Controller) WatchNetworkPolicy

func (oc *Controller) WatchNetworkPolicy()

WatchNetworkPolicy starts the watching of network policy resource and calls back the appropriate handler logic

func (*Controller) WatchPods

func (oc *Controller) WatchPods()

WatchPods starts the watching of Pod resource and calls back the appropriate handler logic

func (*Controller) WatchServices

func (oc *Controller) WatchServices()

WatchServices starts the watching of Service resource and calls back the appropriate handler logic

Jump to

Keyboard shortcuts

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