cluster

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfApiExistsAndLoad added in v0.12.0

func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)

func CreateSSHShell added in v0.2.0

func CreateSSHShell(api libmachine.API, args []string) error

func DeleteHost

func DeleteHost(api libmachine.API) error

DeleteHost deletes the host VM.

func EnsureMinikubeRunningOrExit added in v0.8.0

func EnsureMinikubeRunningOrExit(api libmachine.API, exitStatus int)

EnsureMinikubeRunningOrExit checks that minikube has a status available and that that the status is `Running`, otherwise it will exit

func GenLocalkubeStartCmd added in v0.14.0

func GenLocalkubeStartCmd(kubernetesConfig KubernetesConfig) (string, error)

func GenerateCerts

func GenerateCerts(caCert, caKey, pub, priv string, ip net.IP, name string) error

func GetHostDockerEnv

func GetHostDockerEnv(api libmachine.API) (map[string]string, error)

GetHostDockerEnv gets the necessary docker env variables to allow the use of docker through minikube's vm

func GetHostLogs

func GetHostLogs(api libmachine.API) (string, error)

GetHostLogs gets the localkube logs of the host VM.

func GetHostStatus

func GetHostStatus(api libmachine.API) (string, error)

GetHostStatus gets the status of the host VM.

func GetLocalkubeStatus added in v0.10.0

func GetLocalkubeStatus(api libmachine.API) (string, error)

GetLocalkubeStatus gets the status of localkube from the host VM.

func GetMount9pCommand added in v0.17.0

func GetMount9pCommand(ip net.IP) string

func GetStartCommand

func GetStartCommand(kubernetesConfig KubernetesConfig) (string, error)

func GetStartCommandB2D added in v0.14.0

func GetStartCommandB2D(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)

func GetStartCommandSystemd added in v0.14.0

func GetStartCommandSystemd(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)

func Mount9pHost added in v0.17.0

func Mount9pHost(api libmachine.API) error

Mount9pHost runs the mount command from the 9p client on the VM to the 9p server on the host

func SetupCerts

func SetupCerts(d drivers.Driver, apiServerName string) error

SetupCerts gets the generated credentials required to talk to the APIServer.

func StartCluster

func StartCluster(h sshAble, kubernetesConfig KubernetesConfig) error

StartCluster starts a k8s cluster on the specified Host.

func StartHost

func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)

StartHost starts a host VM.

func StopHost

func StopHost(api libmachine.API) error

StopHost stops the host VM.

func UpdateCluster

func UpdateCluster(h sshAble, d drivers.Driver, config KubernetesConfig) error

Types

type KubernetesConfig added in v0.8.0

type KubernetesConfig struct {
	KubernetesVersion string
	NodeIP            string
	APIServerName     string
	ContainerRuntime  string
	NetworkPlugin     string
	FeatureGates      string
	ExtraOptions      util.ExtraOptionSlice
}

KubernetesConfig contains the parameters used to configure the VM Kubernetes.

type MachineConfig

type MachineConfig struct {
	MinikubeISO         string
	Memory              int
	CPUs                int
	DiskSize            int
	VMDriver            string
	DockerEnv           []string // Each entry is formatted as KEY=VALUE.
	InsecureRegistry    []string
	RegistryMirror      []string
	HostOnlyCIDR        string // Only used by the virtualbox driver
	HypervVirtualSwitch string
	KvmNetwork          string // Only used by the KVM driver
	Downloader          util.ISODownloader
}

MachineConfig contains the parameters used to start a cluster.

Jump to

Keyboard shortcuts

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