 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, internalNetworkInformers networkinformers.SharedInformerFactory, proxyconfig *kubeproxyconfig.KubeProxyConfiguration) (NodeInterface, 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
	// Network shared informer factory.
	NetworkInformers 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) 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
      ¶
      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. | 
 Click to show internal directories. 
   Click to hide internal directories.