Documentation
¶
Overview ¶
package standalone has utilities for running different Kubernetes binaries in a single binary.
Index ¶
- func GetDockerEndpoint(dockerEndpoint string) string
- func RunApiServer(cl *client.Client, etcdClient tools.EtcdClient, addr string, port int)
- func RunControllerManager(machineList []string, cl *client.Client, nodeMilliCPU, nodeMemory int64)
- func RunKubelet(kcfg *KubeletConfig)
- func RunScheduler(cl *client.Client)
- func SimpleRunKubelet(etcdClient tools.EtcdClient, dockerClient dockertools.DockerInterface, ...)
- type KubeletConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDockerEndpoint ¶
func GetDockerEndpoint(dockerEndpoint string) string
Get a docker endpoint, either from the string passed in, or $DOCKER_HOST environment variables
func RunApiServer ¶
func RunApiServer(cl *client.Client, etcdClient tools.EtcdClient, addr string, port int)
RunApiServer starts an API server in a go routine.
func RunControllerManager ¶
func RunControllerManager(machineList []string, cl *client.Client, nodeMilliCPU, nodeMemory int64)
RunControllerManager starts a controller
func RunKubelet ¶
func RunKubelet(kcfg *KubeletConfig)
RunKubelet is responsible for setting up and running a kubelet. It is used in three different applications:
1 Integration tests
2 Kubelet binary
3 Standalone 'kubernetes' binary
Eventually, #2 will be replaced with instances of #3
func RunScheduler ¶
func RunScheduler(cl *client.Client)
RunScheduler starts up a scheduler in it's own goroutine
func SimpleRunKubelet ¶ added in v0.7.0
func SimpleRunKubelet(etcdClient tools.EtcdClient, dockerClient dockertools.DockerInterface, hostname, rootDir, manifestURL, address string, port uint)
SimpleRunKubelet is a simple way to start a Kubelet talking to dockerEndpoint, using an etcdClient. Under the hood it calls RunKubelet (below)
Types ¶
type KubeletConfig ¶ added in v0.7.0
type KubeletConfig struct {
EtcdClient tools.EtcdClient
DockerClient dockertools.DockerInterface
CAdvisorPort uint
Address util.IP
AuthPath string
ApiServerList util.StringList
AllowPrivileged bool
HostnameOverride string
RootDirectory string
ConfigFile string
ManifestURL string
FileCheckFrequency time.Duration
HttpCheckFrequency time.Duration
Hostname string
NetworkContainerImage string
SyncFrequency time.Duration
RegistryPullQPS float64
RegistryBurst int
MinimumGCAge time.Duration
MaxContainerCount int
EnableServer bool
EnableDebuggingHandlers bool
Port uint
Runonce bool
}
Click to show internal directories.
Click to hide internal directories.