services

package
v0.0.0-...-66fd6c4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ETCDRole    = "etcd"
	ControlRole = "controlplane"
	WorkerRole  = "worker"

	KubeAPIContainerName        = "kube-api"
	KubeletContainerName        = "kubelet"
	KubeproxyContainerName      = "kube-proxy"
	KubeControllerContainerName = "kube-controller"
	SchedulerContainerName      = "scheduler"
	EtcdContainerName           = "etcd"
)

Variables

This section is empty.

Functions

func GetKubernetesServiceIp

func GetKubernetesServiceIp(serviceClusterRange string) (net.IP, error)

func RunControlPlane

func RunControlPlane(controlHosts []hosts.Host, etcdHosts []hosts.Host, controlServices Services) error

func RunEtcdPlane

func RunEtcdPlane(etcdHosts []hosts.Host, etcdService Etcd) error

func RunWorkerPlane

func RunWorkerPlane(controlHosts []hosts.Host, workerHosts []hosts.Host, workerServices Services) error

Types

type Etcd

type Etcd struct {
	Image string `yaml:"image"`
}

type KubeAPI

type KubeAPI struct {
	Image                 string `yaml:"image"`
	ServiceClusterIPRange string `yaml:"service_cluster_ip_range"`
}

type KubeController

type KubeController struct {
	Image                 string `yaml:"image"`
	ClusterCIDR           string `yaml:"cluster_cidr"`
	ServiceClusterIPRange string `yaml:"service_cluster_ip_range"`
}

type Kubelet

type Kubelet struct {
	Image               string `yaml:"image"`
	ClusterDomain       string `yaml:"cluster_domain"`
	InfraContainerImage string `yaml:"infra_container_image"`
}

type Kubeproxy

type Kubeproxy struct {
	Image string `yaml:"image"`
}

type Scheduler

type Scheduler struct {
	Image string `yaml:"image"`
}

type Services

type Services struct {
	Etcd           Etcd           `yaml:"etcd"`
	KubeAPI        KubeAPI        `yaml:"kube-api"`
	KubeController KubeController `yaml:"kube-controller"`
	Scheduler      Scheduler      `yaml:"scheduler"`
	Kubelet        Kubelet        `yaml:"kubelet"`
	Kubeproxy      Kubeproxy      `yaml:"kubeproxy"`
}

Jump to

Keyboard shortcuts

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