cluster

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 47 Imported by: 107

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNamespaces = []string{
	"kube-system",
	"kubernetes-dashboard",
	"storage-gluster",
	"istio-operator",
}

DefaultNamespaces are namespaces used by minikube, including addons

Functions

func CacheISO added in v1.0.1

func CacheISO(cfg config.MachineConfig) error

CacheISO downloads and caches ISO.

func CheckIfHostExistsAndLoad added in v0.31.0

func CheckIfHostExistsAndLoad(api libmachine.API, machineName string) (*host.Host, error)

CheckIfHostExistsAndLoad checks if a host exists, and loads it if it does

func CreateSSHShell added in v0.2.0

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

CreateSSHShell creates a new SSH shell / client

func DeleteHost

func DeleteHost(api libmachine.API, machineName string) error

DeleteHost deletes the host VM.

func GetHostDriverIP added in v0.20.0

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

GetHostDriverIP gets the ip address of the current minikube cluster

func GetHostStatus

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

GetHostStatus gets the status of the host VM.

func GetNodeDockerEnv added in v1.7.0

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

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

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 IsHostRunning added in v1.7.0

func IsHostRunning(api libmachine.API, name string) bool

IsHostRunning asserts that this profile's primary host is in state "Running"

func Mount added in v1.0.0

func Mount(r mountRunner, source string, target string, c *MountConfig) error

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

func Pause added in v1.7.0

func Pause(cr cruntime.Manager, r command.Runner, namespaces []string) ([]string, error)

Pause pauses a Kubernetes cluster

func StartHost

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

StartHost starts a host VM.

func StopHost

func StopHost(api libmachine.API) error

StopHost stops the host VM, saving state to disk.

func Unmount added in v1.0.0

func Unmount(r mountRunner, target string) error

Unmount unmounts a path

func Unpause added in v1.7.0

func Unpause(cr cruntime.Manager, r command.Runner, namespaces []string) ([]string, error)

Unpause unpauses a Kubernetes cluster

Types

type MountConfig added in v1.0.0

type MountConfig struct {
	// Type is the filesystem type (Typically 9p)
	Type string
	// UID is the User ID which this path will be mounted as
	UID string
	// GID is the Group ID which this path will be mounted as
	GID string
	// Version is the 9P protocol version. Valid options: 9p2000, 9p200.u, 9p2000.L
	Version string
	// MSize is the number of bytes to use for 9p packet payload
	MSize int
	// Port is the port to connect to on the host
	Port int
	// Mode is the file permissions to set the mount to (octals)
	Mode os.FileMode
	// Extra mount options. See https://www.kernel.org/doc/Documentation/filesystems/9p.txt
	Options map[string]string
}

MountConfig defines the options available to the Mount command

Jump to

Keyboard shortcuts

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