constants

package
v1.4.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 11 Imported by: 592

Documentation

Index

Constants

View Source
const (
	APIServerPort    = 8443
	APIServerName    = "minikubeCA"
	ClusterDNSDomain = "cluster.local"
)
View Source
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"
)
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"
	// 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"
)
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"
	// 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"
)
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 (
	// DriverDocumentation the documentation of the KVM driver
	DriverDocumentation = "https://minikube.sigs.k8s.io/docs/reference/drivers/"
)
View Source
const DriverHyperkit = "hyperkit"

DriverHyperkit is the hyperkit driver option name for mac os

View Source
const DriverHyperv = "hyperv"

DriverHyperv is the hyperv driver option for windows

View Source
const DriverKvm2 = "kvm2"

DriverKvm2 is the kvm2 driver option name for in linux

View Source
const DriverMock = "mock-driver"

DriverMock is a mock driver.

View Source
const DriverNone = "none"

DriverNone is the none driver.

View Source
const DriverParallels = "parallels"

DriverParallels is the parallels driver option name

View Source
const DriverVirtualbox = "virtualbox"

DriverVirtualbox is the virtualbox driver option name

View Source
const DriverVmware = "vmware"

DriverVmware is the vmware driver option name

View Source
const DriverVmwareFusion = "vmwarefusion"

DriverVmwareFusion is the vmware fusion driver option

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.

Variables

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

ConfigFile is the path of the config file

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.16.0-beta.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

View Source
var ImageRepositories = map[string][]string{
	"global": {""},
	"cn":     {"registry.cn-hangzhou.aliyuncs.com/google_containers"},
}

ImageRepositories contains all known image repositories

View Source
var KubeadmBinaries = []string{"kubelet", "kubeadm"}

KubeadmBinaries are Kubernetes release binaries required for kubeadm

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.16.0-beta.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

SupportedVMDrivers is a list of supported drivers on Linux.

Functions

func ArchTag added in v1.1.0

func ArchTag(hasTag bool) string

ArchTag returns the archtag for images

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, osName, archName string) string

GetKubernetesReleaseURL gets the location of a kubernetes client

func GetKubernetesReleaseURLSHA1 added in v1.0.0

func GetKubernetesReleaseURLSHA1(binaryName, version, osName, archName 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 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