Documentation
¶
Index ¶
- Constants
- Variables
- func ArchTag(hasTag bool) string
- func GetKubeadmCachedImages(imageRepository string, kubernetesVersionStr string) (string, []string)
- func GetKubernetesReleaseURL(binaryName, version, osName, archName string) string
- func GetKubernetesReleaseURLSHA1(binaryName, version, osName, archName string) string
- func GetMinipath() string
- func MakeMiniPath(fileName ...string) string
- func TunnelRegistryPath() string
Constants ¶
const ( APIServerPort = 8443 APIServerName = "minikubeCA" ClusterDNSDomain = "cluster.local" )
const ( // DefaultEmbedCerts is if the certs should be embedded in the kubeconfig file DefaultEmbedCerts = false // DefaultKeepContext is if we should keep context by default DefaultKeepContext = false // SHASuffix is the suffix of a SHA-256 checksum file SHASuffix = ".sha256" // DefaultMemorySize is the default memory which will be allocated to minikube, in megabytes DefaultMemorySize = "2000mb" // MinimumMemorySize is the minimum memory size, in megabytes MinimumMemorySize = "1024mb" // DefaultCPUS is the default number of cpus of a host DefaultCPUS = 2 // MinimumCPUS is the minimum number of cpus of a host MinimumCPUS = 2 // DefaultDiskSize is the default disk image size, in megabytes DefaultDiskSize = "20000mb" // MinimumDiskSize is the minimum disk image size, in megabytes MinimumDiskSize = "2000mb" // DefaultVMDriver is the default virtual machine driver name DefaultVMDriver = DriverVirtualbox // DefaultStatusFormat is the default format of a host DefaultStatusFormat = `host: {{.Host}} kubelet: {{.Kubelet}} apiserver: {{.APIServer}} kubectl: {{.Kubeconfig}} ` // DefaultAddonListFormat is the default format of addon list DefaultAddonListFormat = "- {{.AddonName}}: {{.AddonStatus}}\n" // DefaultConfigViewFormat is the default format of config view DefaultConfigViewFormat = "- {{.ConfigKey}}: {{.ConfigValue}}\n" // DefaultCacheListFormat is the default format of cache list DefaultCacheListFormat = "{{.CacheImage}}\n" // GithubMinikubeReleasesURL is the URL of the minikube github releases JSON file GithubMinikubeReleasesURL = "https://storage.googleapis.com/minikube/releases.json" // DefaultWait is the default wait time, in seconds DefaultWait = 20 // DefaultInterval is the default interval, in seconds DefaultInterval = 6 // DefaultK8sClientTimeout is the default kubernetes client timeout DefaultK8sClientTimeout = 60 * time.Second // DefaultClusterBootstrapper is the default cluster bootstrapper DefaultClusterBootstrapper = "kubeadm" )
const ( // KubeletServiceFile is the path to the kubelet systemd service KubeletServiceFile = "/lib/systemd/system/kubelet.service" // KubeletSystemdConfFile is the path to the kubelet systemd configuration KubeletSystemdConfFile = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" // DefaultCNIConfigPath is the path to the CNI configuration DefaultCNIConfigPath = "/etc/cni/net.d/k8s.conf" // GuestAddonsDir is the default path of the addons configuration GuestAddonsDir = "/etc/kubernetes/addons" // GuestManifestsDir is where the kubelet should look for static Pod manifests GuestManifestsDir = "/etc/kubernetes/manifests" // GuestEphemeralDir is the path where ephemeral data should be stored within the VM GuestEphemeralDir = "/var/tmp/minikube" // PersistentDir is the path where persistent data should be stored within the VM (not tmpfs) GuestPersistentDir = "/var/lib/minikube" // GuestCertsDir are where Kubernetes certificates are kept on the guest GuestCertsDir = GuestPersistentDir + "/certs" // DefaultUfsPort is the default port of UFS DefaultUfsPort = "5640" // DefaultUfsDebugLvl is the default debug level of UFS DefaultUfsDebugLvl = 0 // DefaultMountEndpoint is the default mount endpoint DefaultMountEndpoint = "/minikube-host" // DefaultMsize is the default number of bytes to use for 9p packet payload DefaultMsize = 262144 // DefaultMountVersion is the default 9p version to use for mount DefaultMountVersion = "9p2000.L" // IsMinikubeChildProcess is the name of "is minikube child process" variable IsMinikubeChildProcess = "IS_MINIKUBE_CHILD_PROCESS" // FileScheme is the file scheme FileScheme = "file" )
const ( // GvisorFilesPath is the path to the gvisor files saved by go-bindata GvisorFilesPath = "/tmp/gvisor" // ContainerdConfigTomlPath is the path to the containerd config.toml ContainerdConfigTomlPath = "/etc/containerd/config.toml" // StoredContainerdConfigTomlPath is the path where the default config.toml will be stored StoredContainerdConfigTomlPath = "/tmp/config.toml" // GvisorConfigTomlTargetName is the go-bindata target name for the gvisor config.toml GvisorConfigTomlTargetName = "gvisor-config.toml" // GvisorContainerdShimURL is the url to download gvisor-containerd-shim GvisorContainerdShimURL = "https://github.com/google/gvisor-containerd-shim/releases/download/v0.0.3/containerd-shim-runsc-v1.linux-amd64" // GvisorURL is the url to download gvisor GvisorURL = "https://storage.googleapis.com/gvisor/releases/nightly/2019-01-14/runsc" )
const Cache = "cache"
Cache is used to modify the cache field in the config file
const DefaultMachineName = "minikube"
DefaultMachineName is the default name for the VM
const DefaultNodeName = "minikube"
DefaultNodeName is the default name for the kubeadm node within the VM
const DefaultStorageClassProvisioner = "standard"
DefaultStorageClassProvisioner is the name of the default storage class provisioner
const DriverHyperkit = "hyperkit"
DriverHyperkit is the hyperkit driver option name for mac os
const DriverHyperv = "hyperv"
DriverHyperv is the hyperv driver option for windows
const DriverKvm2 = "kvm2"
DriverKvm2 is the kvm2 driver option name for in linux
const DriverMock = "mock-driver"
DriverMock is a mock driver.
const DriverNone = "none"
DriverNone is the none driver.
const DriverParallels = "parallels"
DriverParallels is the parallels driver option name
const DriverVirtualbox = "virtualbox"
DriverVirtualbox is the virtualbox driver option name
const DriverVmware = "vmware"
DriverVmware is the vmware driver option name
const DriverVmwareFusion = "vmwarefusion"
DriverVmwareFusion is the vmware fusion driver option
const MinikubeContext = "minikube"
MinikubeContext is the kubeconfig context name used for minikube
const MinikubeEnvPrefix = "MINIKUBE"
MinikubeEnvPrefix is the prefix for the environmental variables
const MinikubeHome = "MINIKUBE_HOME"
MinikubeHome is the name of the minikube home directory variable.
Variables ¶
var ConfigFile = MakeMiniPath("config", "config.json")
ConfigFile is the path of the config file
var DefaultISOSHAURL = DefaultISOURL + SHASuffix
DefaultISOSHAURL is the default location of the minikube.iso.sha256 file
var DefaultISOURL = fmt.Sprintf("https://storage.googleapis.com/%s/minikube-%s.iso", minikubeVersion.GetISOPath(), minikubeVersion.GetISOVersion())
DefaultISOURL is the default location of the minikube.iso file
var DefaultKubernetesVersion = "v1.16.0"
DefaultKubernetesVersion is the default kubernetes version
var DefaultMinipath = filepath.Join(homedir.HomeDir(), ".minikube")
DefaultMinipath is the default Minikube path (under the home directory)
var DefaultMountDir = homedir.HomeDir()
DefaultMountDir is the default mount dir
var ImageCacheDir = MakeMiniPath("cache", "images")
ImageCacheDir is the path to the image cache directory
var ImageRepositories = map[string][]string{
"global": {""},
"cn": {"registry.cn-hangzhou.aliyuncs.com/google_containers"},
}
ImageRepositories contains all known image repositories
var KubeadmBinaries = []string{"kubelet", "kubeadm"}
KubeadmBinaries are Kubernetes release binaries required for kubeadm
var KubeconfigEnvVar = clientcmd.RecommendedConfigPathEnvVar
KubeconfigEnvVar is the env var to check for the Kubernetes client config
var KubeconfigPath = clientcmd.RecommendedHomeFile
KubeconfigPath is the path to the Kubernetes client config
var MountProcessFileName = ".mount-process"
MountProcessFileName is the filename of the mount process
var NewestKubernetesVersion = "v1.16.0"
NewestKubernetesVersion is the newest Kubernetes version to test against
var OldestKubernetesVersion = "v1.11.10"
OldestKubernetesVersion is the oldest Kubernetes version to test against
var SupportedVMDrivers = [...]string{ DriverVirtualbox, DriverParallels, DriverVmwareFusion, DriverKvm2, DriverVmware, DriverNone, }
SupportedVMDrivers is a list of supported drivers on Linux.
Functions ¶
func GetKubeadmCachedImages ¶ added in v0.22.2
GetKubeadmCachedImages gets the images to cache for kubeadm for a version
func GetKubernetesReleaseURL ¶ added in v0.22.2
GetKubernetesReleaseURL gets the location of a kubernetes client
func GetKubernetesReleaseURLSHA1 ¶ added in v1.0.0
GetKubernetesReleaseURLSHA1 gets the location of a kubernetes client checksum
func GetMinipath ¶ added in v0.17.0
func GetMinipath() string
GetMinipath returns the path to the user's minikube dir
func MakeMiniPath ¶
MakeMiniPath is a utility to calculate a relative path to our directory.
func TunnelRegistryPath ¶ added in v0.31.0
func TunnelRegistryPath() string
TunnelRegistryPath returns the path to the runnel registry file
Types ¶
This section is empty.