Documentation ¶
Index ¶
- func CheckIfApiExistsAndLoad(api libmachine.API) (*host.Host, error)
- func CreateSSHShell(api libmachine.API, args []string) error
- func DeleteHost(api libmachine.API) error
- func EnsureMinikubeRunningOrExit(api libmachine.API, exitStatus int)
- func GenLocalkubeStartCmd(kubernetesConfig KubernetesConfig) (string, error)
- func GenerateCerts(caCert, caKey, pub, priv string, ip net.IP, name string) error
- func GetHostDockerEnv(api libmachine.API) (map[string]string, error)
- func GetHostLogs(api libmachine.API, follow bool) (string, error)
- func GetHostStatus(api libmachine.API) (string, error)
- func GetLocalkubeStatus(api libmachine.API) (string, error)
- func GetLogsCommand(follow bool) (string, error)
- func GetMountCleanupCommand(path string) string
- func GetMountCommand(ip net.IP, path string, port string) (string, error)
- func GetStartCommand(kubernetesConfig KubernetesConfig) (string, error)
- func GetStartCommandSystemd(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
- func GetVMHostIP(host *host.Host) (net.IP, error)
- func MountHost(api libmachine.API, path string, ip net.IP, port string) error
- func RunCommand(h *host.Host, command string, sudo bool) (string, error)
- func SetupCerts(d drivers.Driver, apiServerName string) error
- func StartCluster(api libmachine.API, kubernetesConfig KubernetesConfig) error
- func StartHost(api libmachine.API, config MachineConfig) (*host.Host, error)
- func StopHost(api libmachine.API) error
- func UpdateCluster(d drivers.Driver, config KubernetesConfig) error
- type KubernetesConfig
- type MachineConfig
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 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 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, follow bool) (string, error)
GetHostLogs gets the localkube logs of the host VM. If follow is specified, it will tail the logs
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 GetLogsCommand ¶ added in v0.18.0
func GetMountCleanupCommand ¶ added in v0.19.0
func GetMountCommand ¶ added in v0.19.0
func GetStartCommand ¶
func GetStartCommand(kubernetesConfig KubernetesConfig) (string, error)
func GetStartCommandSystemd ¶ added in v0.14.0
func GetStartCommandSystemd(kubernetesConfig KubernetesConfig, localkubeStartCmd string) (string, error)
func GetVMHostIP ¶ added in v0.19.0
GetVMHostIP gets the ip address to be used for mapping host -> VM and VM -> host
func MountHost ¶ added in v0.19.0
MountHost runs the mount command from the 9p client on the VM to the 9p server on the host
func RunCommand ¶ added in v0.19.1
RunCommand executes commands for both the local and driver implementations
func SetupCerts ¶
SetupCerts gets the generated credentials required to talk to the APIServer.
func StartCluster ¶
func StartCluster(api libmachine.API, 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 UpdateCluster ¶
func UpdateCluster(d drivers.Driver, config KubernetesConfig) error
Types ¶
type KubernetesConfig ¶ added in v0.8.0
type KubernetesConfig struct { KubernetesVersion string NodeIP string APIServerName string DNSDomain 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 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 DockerOpt []string // Each entry is formatted as KEY=VALUE. }
MachineConfig contains the parameters used to start a cluster.