network

package
v3.10.17-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2018 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type NetworkConfig

type NetworkConfig struct {
	// External kube client
	KubeClientset kclientset.Interface
	// External kube client
	ExternalKubeClientset kclientsetexternal.Interface
	// Internal kubernetes shared informer factory.
	InternalKubeInformers kinternalinformers.SharedInformerFactory
	// Internal network shared informer factory.
	InternalNetworkInformers networkinformers.SharedInformerFactory

	// ProxyConfig is the configuration for the kube-proxy, fully initialized
	ProxyConfig *kubeproxyconfig.KubeProxyConfiguration
	// EnableUnidling indicates whether or not the unidling hybrid proxy should be used
	EnableUnidling bool

	// DNSConfig controls the DNS configuration.
	DNSServer *dns.Server

	// SDNNode is an optional SDN node interface
	SDNNode NodeInterface
	// SDNProxy is an optional service endpoints filterer
	SDNProxy ProxyInterface
}

NetworkConfig represents the required parameters to start OpenShift networking through Kubernetes. All fields are required.

func New

func New(options configapi.NodeConfig, clusterDomain string, proxyConfig *kubeproxyconfig.KubeProxyConfiguration, enableProxy, enableDNS bool) (*NetworkConfig, error)

New creates a new network config object for running the networking components of the OpenShift node.

func (*NetworkConfig) RunDNS

func (c *NetworkConfig) RunDNS(stopCh <-chan struct{})

RunDNS starts the DNS server as soon as services are loaded.

func (*NetworkConfig) RunProxy

func (c *NetworkConfig) RunProxy()

RunProxy starts the proxy

func (*NetworkConfig) RunSDN

func (c *NetworkConfig) RunSDN()

RunSDN starts the SDN, if the OpenShift SDN network plugin is enabled in configuration.

type NodeInterface

type NodeInterface interface {
	Start() error
}

type ProxyInterface

type ProxyInterface interface {
	proxyconfig.EndpointsHandler

	Start(proxyconfig.EndpointsHandler) error
}

Directories

Path Synopsis
Extracted from k8s.io/kubernetes/pkg/kubelet/certificate/transport.go, will be removed when openshift-sdn and the network components move out of the Kubelet.
Extracted from k8s.io/kubernetes/pkg/kubelet/certificate/transport.go, will be removed when openshift-sdn and the network components move out of the Kubelet.

Jump to

Keyboard shortcuts

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