Documentation ¶
Index ¶
- Constants
- Variables
- func BuildKubeAPIserverOptions(masterConfig configapi.MasterConfig) (*kapiserveroptions.ServerRunOptions, error)
- func BuildStorageFactory(masterConfig configapi.MasterConfig, ...) (*apiserverstorage.DefaultStorageFactory, error)
- func DefaultOpenAPIConfig() *openapicommon.Config
- type MasterConfig
- func (c *MasterConfig) RunNodeController()
- func (c *MasterConfig) RunPersistentVolumeAttachDetachController(client kclientset.Interface)
- func (c *MasterConfig) RunPersistentVolumeController(client kclientset.Interface, ...)
- func (c *MasterConfig) RunScheduler()
- func (c *MasterConfig) RunServiceLoadBalancerController(client kclientset.Interface)
Constants ¶
const DefaultWatchCacheSize = 1000
Variables ¶
var LegacyAPIGroupPrefixes = sets.NewString(apiserver.DefaultLegacyAPIPrefix, api.Prefix)
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.