constants

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesVersion    = "v1.10.4"
	CNIVersion           = "v0.6.0"
	BaseInstallDir       = "/opt/bin"
	CNIBaseDir           = "/opt/cni/bin"
	CNIConfigDir         = "/etc/cni"
	CNIStateDir          = "/var/lib/cni"
	SystemdDir           = "/etc/systemd/system"
	ConfigDir            = "conf"
	FlannelVersion       = "v0.10.0"
	DefaultPodNetwork    = "10.244.0.0/16"
	DefaultDNSIP         = "10.96.0.10"
	DefaultServiceSubnet = "10.96.0.0/12"
	DefaultDNSDomain     = "cluster.local"
	DefaultRouterID      = 42
	KubeadmConfig        = "/tmp/kubeadm.yaml"
	KubeDNSVersion       = "1.14.8"
	KeepalivedImage      = "platform9/keepalived:v2.0.4"
	CacheDir             = "/var/cache/nodeadm/"
	Execute              = 0744
	Read                 = 0644
	ServiceNodePortRange = "80-32767"
)
View Source
const (
	KubeadmFilename                     = "kubeadm"
	KubectlFilename                     = "kubectl"
	KubeletFilename                     = "kubelet"
	KubeletSystemdUnitFilename          = "kubelet.service"
	KubeadmKubeletSystemdDropinFilename = "10-kubeadm.conf"
	FlannelManifestFilename             = "kube-flannel.yml"
	AdminKubeconfigFile                 = "/etc/kubernetes/admin.conf"
)
View Source
const (
	// TODO(dlipovetsky) Move fields to configuration
	KubeletFailSwapOn   = false
	KubeletMaxPods      = 500
	KubeletKubeAPIQPS   = 20
	KubeletKubeAPIBurst = 40

	NodeadmKubeletSystemdDropinFilename = "20-nodeadm.conf"
	NodeadmKubeletSystemdDropinTemplate = `` /* 317-byte string literal not displayed */

)

Variables

View Source
var CNIDirName = filepath.Join("cni", CNIVersion)
View Source
var CNIPluginsFilename = fmt.Sprintf("cni-plugins-amd64-%s.tgz", CNIVersion)
View Source
var CniVersionInstallDir = filepath.Join(CNIBaseDir, CNIVersion)
View Source
var FlannelDirName = filepath.Join("flannel", FlannelVersion)
View Source
var ImagesCacheDir = filepath.Join(CacheDir, "images")
View Source
var KubeDirName = filepath.Join("kubernetes", KubernetesVersion)

Functions

func GetHostnameOverride

func GetHostnameOverride() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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