constants

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KubernetesVersion                     = "v1.12.8"
	CNIVersion                            = "v0.6.0"
	BaseInstallDir                        = "/opt/bin"
	CNIBaseDir                            = "/opt/cni/bin"
	CNIConfigDir                          = "/etc/cni"
	CNIStateDir                           = "/var/lib/cni"
	SystemdDir                            = "/etc/systemd/system"
	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"
	CoreDNSVersion                        = "1.2.2"
	PauseContainerVersion                 = "3.1"
	KeepalivedImage                       = "platform9/keepalived:v2.0.4"
	CacheDir                              = "/var/cache/nodeadm/"
	Execute                               = 0744
	Read                                  = 0644
	FeatureGates                          = "ExperimentalCriticalPodAnnotation=true"
	Sysctl                                = "/sbin/sysctl"
	ControllerManagerAllocateNodeCIDRsKey = "allocate-node-cidrs"
	ControllerManagerClusterCIDRKey       = "cluster-cidr"
	ControllerManagerNodeCIDRMaskSizeKey  = "node-cidr-mask-size"
	// TODO(puneet) remove when we move to 1.11.
	// Currently set it similar to upstream
	// https://github.com/kubernetes/kubernetes/blob/v1.10.4/cmd/kubeadm/app/phases/controlplane/manifests.go#L281
	ControllerManagerNodeCIDRMaskSize = "24"
	// TODO(puneet) remove when we move to 1.11.
	// Currently set it similar to upstream
	// https://github.com/kubernetes/kubernetes/blob/v1.10.4/cmd/kubeadm/app/phases/controlplane/manifests.go#L340
	ControllerManagerAllocateNodeCIDRs = "true"
	KubeletConfigKubeReservedCPUKey    = "cpu"
	DefaultAPIBindPort                 = 6443
)
View Source
const (
	VRRPScriptInterval = 10
	VRRPScriptRise     = 2
	VRRPScriptFall     = 6
	WgetTimeout        = 8
)
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"
	KeepalivedConfigFilename            = "/etc/keepalived/keepalived.conf"
)

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