constants

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: Apache-2.0 Imports: 10 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  = false
	ShaSuffix           = ".sha256"
	DefaultMemory       = 2048
	DefaultCPUS         = 2
	DefaultDiskSize     = "20g"
	MinimumDiskSizeMB   = 2000
	DefaultVMDriver     = "virtualbox"
	DefaultStatusFormat = "minikube: {{.MinikubeStatus}}\n" +
		"cluster: {{.ClusterStatus}}\n" + "kubectl: {{.KubeconfigStatus}}\n"
	DefaultAddonListFormat     = "- {{.AddonName}}: {{.AddonStatus}}\n"
	DefaultConfigViewFormat    = "- {{.ConfigKey}}: {{.ConfigValue}}\n"
	DefaultCacheListFormat     = "{{.CacheImage}}\n"
	GithubMinikubeReleasesURL  = "https://storage.googleapis.com/minikube/releases.json"
	KubernetesVersionGCSURL    = "https://storage.googleapis.com/minikube/k8s_releases.json"
	DefaultWait                = 20
	DefaultInterval            = 6
	DefaultClusterBootstrapper = "kubeadm"
)
View Source
const (
	RemoteLocalKubeErrPath = "/var/lib/localkube/localkube.err"
	RemoteLocalKubeOutPath = "/var/lib/localkube/localkube.out"
	LocalkubePIDPath       = "/var/run/localkube.pid"
)
View Source
const (
	KubeletServiceFile     = "/lib/systemd/system/kubelet.service"
	KubeletSystemdConfFile = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf"
	KubeadmConfigFile      = "/var/lib/kubeadm.yaml"
)
View Source
const (
	LocalkubeServicePath = "/etc/systemd/system/localkube.service"
	LocalkubeRunning     = "active"
	LocalkubeStopped     = "inactive"
)
View Source
const (
	DefaultUfsPort       = "5640"
	DefaultUfsDebugLvl   = 0
	DefaultMountEndpoint = "/minikube-host"
	DefaultMsize         = 262144
	DefaultMountVersion  = "9p2000.u"
)
View Source
const AddonsPath = "/etc/kubernetes/addons"
View Source
const Cache = "cache"

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"

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"
View Source
const FileScheme = "file"
View Source
const FilesPath = "/files"
View Source
const IsMinikubeChildProcess = "IS_MINIKUBE_CHILD_PROCESS"
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"
View Source
const ReportingURL = "" /* 130-byte string literal not displayed */

Variables

View Source
var ConfigFile = MakeMiniPath("config", "config.json")
View Source
var ConfigFilePath = MakeMiniPath("config")
View Source
var DefaultIsoShaUrl = DefaultIsoUrl + ShaSuffix
View Source
var DefaultIsoUrl = fmt.Sprintf("https://storage.googleapis.com/%s/minikube-%s.iso", minikubeVersion.GetIsoPath(), minikubeVersion.GetIsoVersion())
View Source
var DefaultKubernetesVersion = version.Get().GitVersion
View Source
var DefaultMinipath = filepath.Join(homedir.HomeDir(), ".minikube")
View Source
var DefaultMountDir = homedir.HomeDir()
View Source
var ImageCacheDir = MakeMiniPath("cache", "images")

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

KubeconfigPath is the path to the Kubernetes client config

View Source
var LocalkubeCachedImages = []string{

	"k8s.gcr.io/kubernetes-dashboard-amd64:v1.8.1",

	"k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.5",
	"k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.5",
	"k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.5",

	"k8s.gcr.io/kube-addon-manager:v6.5",

	"k8s.gcr.io/pause-amd64:3.0",

	"gcr.io/k8s-minikube/storage-provisioner:v1.8.0",
}
View Source
var LocalkubeDownloadURLPrefix = "https://storage.googleapis.com/minikube/k8sReleases/"
View Source
var LocalkubeLinuxFilename = "localkube-linux-amd64"
View Source
var LogFlags = [...]string{
	"v",
	"vmodule",
}

Only pass along these flags to localkube.

View Source
var MountProcessFileName = ".mount-process"
View Source
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",
}
View Source
var SupportedVMDrivers = [...]string{
	"virtualbox",
	"vmwarefusion",
	"kvm",
	"xhyve",
	"hyperv",
	"hyperkit",
	"kvm2",
	"none",
}

SupportedVMDrivers is a list of supported drivers on all platforms. Currently used in gendocs.

Functions

func GetKubeadmCachedImages added in v0.22.2

func GetKubeadmCachedImages(kubernetesVersionStr string) []string

func GetKubernetesReleaseURL added in v0.22.2

func GetKubernetesReleaseURL(binaryName, version string) string

func GetKubernetesReleaseURLSha1 added in v0.22.2

func GetKubernetesReleaseURLSha1(binaryName, version string) string

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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