standalone

package
v0.9.1-0...-c65f83f Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2015 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

package standalone has utilities for running different Kubernetes binaries in a single binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIServerClient

func GetAPIServerClient(authPath string, apiServerList util.StringList) (*client.Client, error)

TODO: replace this with clientcmd

func RunApiServer

func RunApiServer(cl *client.Client, etcdClient tools.EtcdClient, addr string, port int, masterServiceNamespace string)

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

func SimpleRunKubelet(client *client.Client,
	etcdClient tools.EtcdClient,
	dockerClient dockertools.DockerInterface,
	hostname, rootDir, manifestURL, address string,
	port uint,
	masterServiceNamespace string,
	volumePlugins []volume.Plugin)

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

type KubeletConfig struct {
	EtcdClient              tools.EtcdClient
	KubeClient              *client.Client
	DockerClient            dockertools.DockerInterface
	CAdvisorPort            uint
	Address                 util.IP
	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
	ClusterDomain           string
	ClusterDNS              util.IP
	EnableServer            bool
	EnableDebuggingHandlers bool
	Port                    uint
	Runonce                 bool
	MasterServiceNamespace  string
	VolumePlugins           []volume.Plugin
}

Jump to

Keyboard shortcuts

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