constants

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIServerName    = "minikubeCA"
	ClusterDNSDomain = "cluster.local"
)

APIServerPort is the port that the API server should listen on.

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const AddonsPath = "/etc/kubernetes/addons"

AddonsPath is the default path of the addons configuration

View Source
const Cache = "cache"

Cache is used to modify the cache field in the config file

View Source
const DefaultMachineName = "minikube"

DefaultMachineName is the default name for the VM

View Source
const DefaultNodeName = "minikube"

DefaultNodeName is the default name for the kubeadm node within the VM

View Source
const DefaultStorageClassProvisioner = "standard"

DefaultStorageClassProvisioner is the name of the default storage class provisioner

View Source
const DockerAPIVersion = "1.35"

DockerAPIVersion is the API version implemented by Docker running in the minikube VM.

View Source
const DriverNone = "none"

DriverNone is the none driver

View Source
const FileScheme = "file"

FileScheme is the file scheme

View Source
const FilesPath = "/files"

FilesPath is the default path of files

View Source
const IsMinikubeChildProcess = "IS_MINIKUBE_CHILD_PROCESS"

IsMinikubeChildProcess is the name of "is minikube child process" variable

View Source
const MinikubeContext = "minikube"

MinikubeContext is the kubeconfig context name used for minikube

View Source
const MinikubeEnvPrefix = "MINIKUBE"

MinikubeEnvPrefix is the prefix for the environmental variables

View Source
const MinikubeHome = "MINIKUBE_HOME"

MinikubeHome is the name of the minikube home directory variable.

View Source
const ReportingURL = "" /* 130-byte string literal not displayed */

ReportingURL is the URL for reporting a minikube error

Variables

View Source
var ConfigFile = MakeMiniPath("config", "config.json")

ConfigFile is the path of the config file

View Source
var ConfigFilePath = MakeMiniPath("config")

ConfigFilePath is the path of the config directory

View Source
var DefaultISOSHAURL = DefaultISOURL + SHASuffix

DefaultISOSHAURL is the default location of the minikube.iso.sha256 file

View Source
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

View Source
var DefaultKubernetesVersion = "v1.14.1"

DefaultKubernetesVersion is the default kubernetes version

View Source
var DefaultMinipath = filepath.Join(homedir.HomeDir(), ".minikube")

DefaultMinipath is the default Minikube path (under the home directory)

View Source
var DefaultMountDir = homedir.HomeDir()

DefaultMountDir is the default mount dir

View Source
var ImageCacheDir = MakeMiniPath("cache", "images")

ImageCacheDir is the path to the image cache directory

KubeconfigEnvVar is the env var to check for the Kubernetes client config

KubeconfigPath is the path to the Kubernetes client config

View Source
var MountProcessFileName = ".mount-process"

MountProcessFileName is the filename of the mount process

View Source
var NewestKubernetesVersion = "v1.14.1"

NewestKubernetesVersion is the newest Kubernetes version to test against

View Source
var OldestKubernetesVersion = "v1.10.13"

OldestKubernetesVersion is the oldest Kubernetes version to test against

View Source
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

func GetKubeadmCachedImages(imageRepository string, kubernetesVersionStr string) (string, []string)

GetKubeadmCachedImages gets the images to cache for kubeadm for a version

func GetKubernetesReleaseURL added in v0.22.2

func GetKubernetesReleaseURL(binaryName, version string) string

GetKubernetesReleaseURL gets the location of a kubernetes client

func GetKubernetesReleaseURLSHA1 added in v1.0.0

func GetKubernetesReleaseURLSHA1(binaryName, version string) string

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

func GetProfileFile(profile string) string

GetProfileFile returns the Minikube profile config file

func MakeMiniPath

func MakeMiniPath(fileName ...string) string

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.

Jump to

Keyboard shortcuts

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