Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2018 Changes in this version + const ComponentDNS + const ComponentGroupNetwork + const ComponentKubelet + const ComponentPlugins + const ComponentProxy + func BindImageFormatArgs(args *ImageFormatArgs, flags *pflag.FlagSet, prefix string) + func BindKubeConnectionArgs(args *KubeConnectionArgs, flags *pflag.FlagSet, prefix string) + func BindListenArg(args *ListenArg, flags *pflag.FlagSet, prefix string) + func BindMasterArgs(args *MasterArgs, flags *pflag.FlagSet, prefix string) + func BindNetworkArgs(args *NetworkArgs, flags *pflag.FlagSet, prefix string) + func BindNodeArgs(args *NodeArgs, flags *pflag.FlagSet, prefix string, components bool) + func BindNodeNetworkArgs(args *NodeArgs, flags *pflag.FlagSet, prefix string) + func GetAllInOneArgs() (*MasterArgs, *NodeArgs, *ListenArg, *ImageFormatArgs, *KubeConnectionArgs) + func NewNetworkComponentFlag() *utilflags.ComponentFlag + func NewNodeComponentFlag() *utilflags.ComponentFlag + func StartAPI(oc *origin.MasterConfig) error + func StartNode(nodeConfig configapi.NodeConfig, components *utilflags.ComponentFlag, ...) error + func ValidateRuntime(config *configapi.NodeConfig, components *utilflags.ComponentFlag) error + type AllInOneOptions struct + ConfigDir flag.StringFlag + ExpireDays int + MasterOptions *MasterOptions + NodeArgs *NodeArgs + NodeConfigFile string + Output io.Writer + PrintIP bool + ServiceNetworkCIDR string + SignerExpireDays int + func NewCommandStartAllInOne(basename string, out, errout io.Writer) (*cobra.Command, *AllInOneOptions) + func (o *AllInOneOptions) Complete() error + func (o AllInOneOptions) IsRunFromConfig() bool + func (o AllInOneOptions) IsWriteConfigOnly() bool + func (o AllInOneOptions) StartAllInOne() error + func (o AllInOneOptions) Validate(args []string) error + type ImageFormatArgs struct + ImageTemplate variable.ImageTemplate + func NewDefaultImageFormatArgs() *ImageFormatArgs + type KubeConnectionArgs struct + ClientConfig clientcmd.ClientConfig + ClientConfigLoadingRules clientcmd.ClientConfigLoadingRules + KubernetesAddr flagtypes.Addr + func NewDefaultKubeConnectionArgs() *KubeConnectionArgs + func (args KubeConnectionArgs) GetExternalKubernetesClientConfig() (*restclient.Config, bool, error) + func (args KubeConnectionArgs) GetKubernetesAddress(defaultAddress *url.URL) (*url.URL, error) + func (args KubeConnectionArgs) Validate() error + type ListenArg struct + ListenAddr flagtypes.Addr + func NewDefaultListenArg() *ListenArg + func (l *ListenArg) UseTLS() bool + type Master struct + func NewMaster(config *configapi.MasterConfig, controllers, api bool) *Master + func (m *Master) Start() error + type MasterArgs struct + APIServerCAFiles []string + CORSAllowedOrigins []string + ConfigDir *flag.StringFlag + DNSBindAddr flagtypes.Addr + EtcdAddr flagtypes.Addr + EtcdDir string + ImageFormatArgs *ImageFormatArgs + KubeConnectionArgs *KubeConnectionArgs + ListenArg *ListenArg + MasterAddr flagtypes.Addr + MasterPublicAddr flagtypes.Addr + NetworkArgs *NetworkArgs + OverrideConfig func(config *configapi.MasterConfig) error + SchedulerConfigFile string + StartAPI bool + StartControllers bool + func NewDefaultMasterArgs() *MasterArgs + func (args MasterArgs) BuildSerializeableEtcdConfig() (*configapi.EtcdConfig, error) + func (args MasterArgs) BuildSerializeableKubeMasterConfig() (*configapi.KubernetesMasterConfig, error) + func (args MasterArgs) BuildSerializeableMasterConfig() (*configapi.MasterConfig, error) + func (args MasterArgs) BuildSerializeableOAuthConfig() (*configapi.OAuthConfig, error) + func (args MasterArgs) GetAssetPublicAddress() (*url.URL, error) + func (args MasterArgs) GetConfigFileToWrite() string + func (args MasterArgs) GetDNSBindAddress() (flagtypes.Addr, error) + func (args MasterArgs) GetEtcdAddress() (*url.URL, error) + func (args MasterArgs) GetEtcdBindAddress() string + func (args MasterArgs) GetEtcdPeerAddress() (*url.URL, error) + func (args MasterArgs) GetEtcdPeerBindAddress() string + func (args MasterArgs) GetMasterAddress() (*url.URL, error) + func (args MasterArgs) GetMasterPublicAddress() (*url.URL, error) + func (args MasterArgs) GetServerCertHostnames() (sets.String, error) + func (args MasterArgs) Validate() error + type MasterOptions struct + ConfigFile string + CreateCertificates bool + ExpireDays int + MasterArgs *MasterArgs + Output io.Writer + SignerExpireDays int + func NewCommandStartMaster(basename string, out, errout io.Writer) (*cobra.Command, *MasterOptions) + func NewCommandStartMasterAPI(name, basename string, out, errout io.Writer) (*cobra.Command, *MasterOptions) + func NewCommandStartMasterControllers(name, basename string, out, errout io.Writer) (*cobra.Command, *MasterOptions) + func (o *MasterOptions) Complete() error + func (o *MasterOptions) DefaultsFromName(basename string) + func (o MasterOptions) CreateCerts() error + func (o MasterOptions) IsRunFromConfig() bool + func (o MasterOptions) IsWriteConfigOnly() bool + func (o MasterOptions) RunMaster() error + func (o MasterOptions) StartMaster() error + func (o MasterOptions) Validate(args []string) error + type NetworkArgs struct + ClusterNetworkCIDR string + HostSubnetLength uint32 + NetworkPluginName string + ServiceNetworkCIDR string + func NewDefaultNetworkArgs() *NetworkArgs + type NodeArgs struct + AllowDisabledDocker bool + Bootstrap bool + BootstrapConfigName string + BootstrapConfigNamespace string + ClusterDNS net.IP + ClusterDomain string + Components *utilflags.ComponentFlag + ConfigDir flag.StringFlag + DNSBindAddr string + DefaultKubernetesURL *url.URL + ImageFormatArgs *ImageFormatArgs + KubeConnectionArgs *KubeConnectionArgs + ListenArg *ListenArg + MasterCertDir string + NetworkPluginName string + NodeName string + RecursiveResolvConf string + VolumeDir string + VolumeDirProvided bool + WriteFlagsOnly bool + func NewDefaultNodeArgs() *NodeArgs + func (args NodeArgs) BuildSerializeableNodeConfig() (*configapi.NodeConfig, error) + func (args NodeArgs) GetServerCertHostnames() (sets.String, error) + func (args NodeArgs) MergeSerializeableNodeConfig(config *configapi.NodeConfig) error + func (args NodeArgs) Validate() error + type NodeOptions struct + ConfigFile string + ExpireDays int + NodeArgs *NodeArgs + Output io.Writer + func NewCommandStartNetwork(basename string, out, errout io.Writer) (*cobra.Command, *NodeOptions) + func NewCommandStartNode(basename string, out, errout io.Writer) (*cobra.Command, *NodeOptions) + func (o NodeOptions) Complete(cmd *cobra.Command) error + func (o NodeOptions) IsRunFromConfig() bool + func (o NodeOptions) IsWriteConfigOnly() bool + func (o NodeOptions) RunNode(stopCh <-chan struct{}) error + func (o NodeOptions) StartNode(stopCh <-chan struct{}) error + func (o NodeOptions) Validate(args []string) error + func (options *NodeOptions) Run(c *cobra.Command, errout io.Writer, args []string, stopCh <-chan struct{})