cluster

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 27 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 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 GetHostDriverIP added in v0.20.0

func GetHostDriverIP(api libmachine.API) (net.IP, error)

GetHostDriverIP gets the ip address of the current minikube cluster

func GetHostStatus

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

GetHostStatus gets the status of the host VM.

func GetMountCleanupCommand added in v0.19.0

func GetMountCleanupCommand(path string) string

func GetMountCommand added in v0.19.0

func GetMountCommand(ip net.IP, path, port, mountVersion string, uid, gid, msize int) (string, error)

func GetVMHostIP added in v0.19.0

func GetVMHostIP(host *host.Host) (net.IP, error)

GetVMHostIP gets the ip address to be used for mapping host -> VM and VM -> host

func MountHost added in v0.19.0

func MountHost(api libmachine.API, ip net.IP, path, port, mountVersion string, uid, gid, msize int) error

MountHost runs the mount command from the 9p client on the VM to the 9p server on the 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.

Types

type Config added in v0.22.0

type Config struct {
	MachineConfig    MachineConfig
	KubernetesConfig bootstrapper.KubernetesConfig
}

Config contains machine and k8s config

type MachineConfig

type MachineConfig struct {
	MinikubeISO         string
	Memory              int
	CPUs                int
	DiskSize            int
	VMDriver            string
	XhyveDiskDriver     string   // Only used by the xhyve driver
	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 `json:"-"`
	DockerOpt           []string           // Each entry is formatted as KEY=VALUE.
	DisableDriverMounts bool               // Only used by virtualbox and xhyve
	NFSShare            []string
	NFSSharesRoot       string
	UUID                string // Only used by hyperkit to restore the mac address
}

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