Documentation ¶
Index ¶
- Constants
- Variables
- func GetKubeadmCachedBinaries() []string
- func GetKubeadmCachedImages(imageRepository string, kubernetesVersionStr string) (string, []string)
- func GetKubernetesReleaseURL(binaryName, version string) string
- func GetKubernetesReleaseURLSHA1(binaryName, version string) string
- func GetMinipath() string
- func GetProfileFile(profile string) string
- func MakeMiniPath(fileName ...string) string
- func TunnelRegistryPath() string
Constants ¶
const ( APIServerName = "minikubeCA" ClusterDNSDomain = "cluster.local" )
APIServerPort is the port that the API server should listen on.
const ( // DefaultKeepContext is if we should keep context by default DefaultKeepContext = false // SHASuffix is the suffix of a SHA-256 checksum file SHASuffix = ".sha256" // DefaultMemory is the default memory of a host, in megabytes DefaultMemory = 2048 // DefaultCPUS is the default number of cpus of a host DefaultCPUS = 2 // DefaultDiskSize is the default disk image size, parseable DefaultDiskSize = "20g" // MinimumDiskSizeMB is the minimum disk image size, in megabytes MinimumDiskSizeMB = 2000 // DefaultVMDriver is the default virtual machine driver name DefaultVMDriver = "virtualbox" // 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" // KubeadmConfigFile is the path to the kubeadm configuration KubeadmConfigFile = "/var/lib/kubeadm.yaml" // DefaultCNIConfigPath is the path to the CNI configuration DefaultCNIConfigPath = "/etc/cni/net.d/k8s.conf" // DefaultRktNetConfigPath is the path to the rkt net configuration DefaultRktNetConfigPath = "/etc/rkt/net.d/k8s.conf" )
const ( // 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" )
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" // GvisorContainerdShimTomlPath is the path to gvisor-containerd-shim.toml GvisorContainerdShimTomlPath = "/etc/containerd/gvisor-containerd-shim.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" // GvisorContainerdShimTargetName is the go-bindata target name for gvisor-containerd-shim GvisorContainerdShimTargetName = "gvisor-containerd-shim.toml" // GvisorContainerdShimURL is the url to download gvisor-containerd-shim GvisorContainerdShimURL = "https://github.com/google/gvisor-containerd-shim/releases/download/v0.0.1-rc.0/gvisor-containerd-shim-v0.0.1-rc.0.linux-amd64" // GvisorURL is the url to download gvisor GvisorURL = "https://storage.googleapis.com/gvisor/releases/nightly/2018-12-07/runsc" )
const AddonsPath = "/etc/kubernetes/addons"
AddonsPath is the default path of the addons configuration
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 DockerAPIVersion = "1.35"
DockerAPIVersion is the API version implemented by Docker running in the minikube VM.
const DriverNone = "none"
DriverNone is the none driver
const FileScheme = "file"
FileScheme is the file scheme
const FilesPath = "/files"
FilesPath is the default path of files
const IsMinikubeChildProcess = "IS_MINIKUBE_CHILD_PROCESS"
IsMinikubeChildProcess is the name of "is minikube child process" variable
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.
const ReportingURL = "" /* 130-byte string literal not displayed */
ReportingURL is the URL for reporting a minikube error
Variables ¶
var ConfigFile = MakeMiniPath("config", "config.json")
ConfigFile is the path of the config file
var ConfigFilePath = MakeMiniPath("config")
ConfigFilePath is the path of the config directory
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.14.1"
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 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.14.1"
NewestKubernetesVersion is the newest Kubernetes version to test against
var OldestKubernetesVersion = "v1.10.13"
OldestKubernetesVersion is the oldest Kubernetes version to test against
var SupportedVMDrivers = [...]string{
"virtualbox",
"parallels",
"vmwarefusion",
"kvm",
"xhyve",
"hyperv",
"hyperkit",
"kvm2",
"vmware",
"none",
}
SupportedVMDrivers is a list of supported drivers on all platforms. Currently used in gendocs.
Functions ¶
func GetKubeadmCachedBinaries ¶ added in v1.0.1
func GetKubeadmCachedBinaries() []string
GetKubeadmCachedBinaries gets the binaries to cache for kubeadm
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 GetProfileFile ¶ added in v0.22.0
GetProfileFile returns the Minikube profile config file
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.