master

package
v0.0.0-...-b8a4a2c Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 95 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

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