master

package
v3.6.115-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2017 License: Apache-2.0 Imports: 96 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWatchCacheSize = 1000

Variables

Functions

func BuildKubeAPIserverOptions

func BuildKubeAPIserverOptions(masterConfig configapi.MasterConfig) (*kapiserveroptions.ServerRunOptions, error)

BuildKubeAPIserverOptions constructs the appropriate kube-apiserver run options. It returns an error if no KubernetesMasterConfig was defined.

func BuildStorageFactory

func BuildStorageFactory(masterConfig configapi.MasterConfig, server *kapiserveroptions.ServerRunOptions, enforcedStorageVersions map[schema.GroupResource]schema.GroupVersion) (*apiserverstorage.DefaultStorageFactory, error)

BuildStorageFactory builds a storage factory based on server.Etcd.StorageConfig with overrides from masterConfig. This storage factory is used for kubernetes and origin registries. Compare pkg/util/restoptions/configgetter.go.

func DefaultOpenAPIConfig

func DefaultOpenAPIConfig() *openapicommon.Config

Types

type MasterConfig

type MasterConfig struct {
	Options            configapi.KubernetesMasterConfig
	InternalKubeClient kinternalclientset.Interface
	KubeClient         kclientset.Interface

	Master            *master.Config
	ControllerManager *cmapp.CMServer
	SchedulerServer   *scheduleroptions.SchedulerServer
	CloudProvider     cloudprovider.Interface

	Informers shared.InformerFactory
}

MasterConfig defines the required values to start a Kubernetes master

func BuildKubernetesMasterConfig

func BuildKubernetesMasterConfig(
	masterConfig configapi.MasterConfig,
	requestContextMapper apirequest.RequestContextMapper,
	kubeClient kclientset.Interface,
	internalKubeClient kinternalclientset.Interface,
	informers shared.InformerFactory,
	admissionControl admission.Interface,
	originAuthenticator authenticator.Request,
	kubeAuthorizer authorizer.Authorizer,
) (*MasterConfig, error)

TODO this function's parameters need to be refactored

func (*MasterConfig) RunNodeController

func (c *MasterConfig) RunNodeController()

RunNodeController starts the node controller TODO: handle node CIDR and route allocation

func (*MasterConfig) RunPersistentVolumeAttachDetachController

func (c *MasterConfig) RunPersistentVolumeAttachDetachController(client kclientset.Interface)

func (*MasterConfig) RunPersistentVolumeController

func (c *MasterConfig) RunPersistentVolumeController(client kclientset.Interface, namespace, recyclerImageName, recyclerServiceAccountName string)

func (*MasterConfig) RunScheduler

func (c *MasterConfig) RunScheduler()

RunScheduler starts the Kubernetes scheduler

func (*MasterConfig) RunServiceLoadBalancerController

func (c *MasterConfig) RunServiceLoadBalancerController(client kclientset.Interface)

RunServiceLoadBalancerController starts the service loadbalancer controller if the cloud provider is configured.

Jump to

Keyboard shortcuts

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