Documentation ¶
Index ¶
- Constants
- Variables
- func GetKubeadmCachedImages(kubernetesVersionStr 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 = false ShaSuffix = ".sha256" DefaultMemory = 2048 DefaultCPUS = 2 DefaultDiskSize = "20g" MinimumDiskSizeMB = 2000 DefaultVMDriver = "virtualbox" DefaultStatusFormat = `host: {{.Host}} kubelet: {{.Kubelet}} apiserver: {{.ApiServer}} kubectl: {{.Kubeconfig}} ` DefaultAddonListFormat = "- {{.AddonName}}: {{.AddonStatus}}\n" DefaultConfigViewFormat = "- {{.ConfigKey}}: {{.ConfigValue}}\n" DefaultCacheListFormat = "{{.CacheImage}}\n" GithubMinikubeReleasesURL = "https://storage.googleapis.com/minikube/releases.json" DefaultWait = 20 DefaultInterval = 6 DefaultK8sClientTimeout = 60 * time.Second DefaultClusterBootstrapper = "kubeadm" )
const ( KubeletServiceFile = "/lib/systemd/system/kubelet.service" KubeletSystemdConfFile = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" KubeadmConfigFile = "/var/lib/kubeadm.yaml" DefaultCNIConfigPath = "/etc/cni/net.d/k8s.conf" DefaultRktNetConfigPath = "/etc/rkt/net.d/k8s.conf" )
const ( ContainerdRuntime = "containerd" RktRuntime = "rkt" CrioRuntime = "crio" Cri_oRuntime = "cri-o" )
const ( DefaultUfsPort = "5640" DefaultUfsDebugLvl = 0 DefaultMountEndpoint = "/minikube-host" DefaultMsize = 262144 DefaultMountVersion = "9p2000.u" )
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 givosr-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"
const Cache = "cache"
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"
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"
const FileScheme = "file"
const FilesPath = "/files"
const IsMinikubeChildProcess = "IS_MINIKUBE_CHILD_PROCESS"
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"
const ReportingURL = "" /* 130-byte string literal not displayed */
Variables ¶
var AlternateRuntimePreflights = append(Preflights, []string{
"Service-Docker",
"Port-8443",
"Port-10251",
"Port-10252",
"Port-2379",
}...)
AlternateRuntimePreflights are additional preflight checks that are skipped when running any container runtime that isn't Docker
var ConfigFile = MakeMiniPath("config", "config.json")
var ConfigFilePath = MakeMiniPath("config")
var DefaultIsoShaUrl = DefaultIsoUrl + ShaSuffix
var DefaultIsoUrl = fmt.Sprintf("https://storage.googleapis.com/%s/minikube-%s.iso", minikubeVersion.GetIsoPath(), minikubeVersion.GetIsoVersion())
var DefaultKubernetesVersion = "v1.13.2"
var DefaultMinipath = filepath.Join(homedir.HomeDir(), ".minikube")
var DefaultMountDir = homedir.HomeDir()
var ImageCacheDir = MakeMiniPath("cache", "images")
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"
var Preflights = []string{
"DirAvailable--etc-kubernetes-manifests",
"DirAvailable--data-minikube",
"Port-10250",
"FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml",
"FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml",
"FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml",
"FileAvailable--etc-kubernetes-manifests-etcd.yaml",
"Swap",
"CRI",
}
var SupportedVMDrivers = [...]string{
"virtualbox",
"vmwarefusion",
"kvm",
"xhyve",
"hyperv",
"hyperkit",
"kvm2",
"vmware",
"none",
}
SupportedVMDrivers is a list of supported drivers on all platforms. Currently used in gendocs.
Functions ¶
func GetKubeadmCachedImages ¶ added in v0.22.2
func GetKubernetesReleaseURL ¶ added in v0.22.2
func GetKubernetesReleaseURLSha1 ¶ added in v0.22.2
func GetMinipath ¶ added in v0.17.0
func GetMinipath() string
Minipath is 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
Types ¶
This section is empty.