 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
      Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSDNInterfaces ¶
func NewSDNInterfaces(options configapi.NodeConfig, networkClient networkclient.Interface, kubeClientset kclientset.Interface, kubeClient kinternalclientset.Interface, internalKubeInformers kinternalinformers.SharedInformerFactory, proxyconfig *componentconfig.KubeProxyConfiguration) (network.NodeInterface, network.ProxyInterface, error)
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
	// ProxyConfig is the configuration for the kube-proxy, fully initialized
	ProxyConfig *componentconfig.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 network.NodeInterface
	// SDNProxy is an optional service endpoints filterer
	SDNProxy network.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 *componentconfig.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()
RunDNS starts the DNS server as soon as services are loaded.
func (*NetworkConfig) RunSDN ¶
func (c *NetworkConfig) RunSDN()
RunSDN starts the SDN, if the OpenShift SDN network plugin is enabled in configuration.
 Click to show internal directories. 
   Click to hide internal directories.