Documentation ¶
Index ¶
- Variables
- func CreateSymLinks(sourceDir, targetDir string, overwriteSymlinks bool)
- func Download(fileName string, url string, mode os.FileMode)
- func GetImages() []string
- func InitConfigurationFromFile(path string) (*apis.InitConfiguration, error)
- func InstallMasterComponents(config *apis.InitConfiguration)
- func InstallNodeComponents()
- func JoinConfigurationFromFile(path string) (*apis.JoinConfiguration, error)
- func PopulateCache()
- func ReplaceString(file string, from string, to string)
- func UseNumber(d *json.Decoder) *json.Decoder
- type Artifact
Constants ¶
This section is empty.
Variables ¶
View Source
var DOCKER_IMAGES = []string{ constants.KeepalivedImage, fmt.Sprintf("k8s.gcr.io/kube-apiserver:%s", constants.KubernetesVersion), fmt.Sprintf("k8s.gcr.io/kube-controller-manager:%s", constants.KubernetesVersion), fmt.Sprintf("k8s.gcr.io/kube-scheduler:%s", constants.KubernetesVersion), fmt.Sprintf("k8s.gcr.io/kube-proxy:%s", constants.KubernetesVersion), fmt.Sprintf("k8s.gcr.io/coredns:%s", constants.CoreDNSVersion), fmt.Sprintf("quay.io/coreos/flannel:%s-amd64", constants.FlannelVersion), fmt.Sprintf("k8s.gcr.io/pause:%s", constants.PauseContainerVersion), }
View Source
var NodeArtifact = []Artifact{ { Name: constants.KubeadmFilename, Type: "executable", Upstream: fmt.Sprintf("https://storage.googleapis.com/kubernetes-release/release/%s/bin/linux/amd64/", constants.KubernetesVersion), Local: filepath.Join(constants.CacheDir, constants.KubeDirName), }, { Name: constants.KubectlFilename, Type: "executable", Upstream: fmt.Sprintf("https://storage.googleapis.com/kubernetes-release/release/%s/bin/linux/amd64/", constants.KubernetesVersion), Local: filepath.Join(constants.CacheDir, constants.KubeDirName), }, { Name: constants.KubeletFilename, Type: "executable", Upstream: fmt.Sprintf("https://storage.googleapis.com/kubernetes-release/release/%s/bin/linux/amd64/", constants.KubernetesVersion), Local: filepath.Join(constants.CacheDir, constants.KubeDirName), }, { Name: constants.KubeletSystemdUnitFilename, Type: "regular", Upstream: fmt.Sprintf("https://raw.githubusercontent.com/kubernetes/kubernetes/%s/build/debs/", constants.KubernetesVersion), Local: filepath.Join(constants.CacheDir, constants.KubeDirName), }, { Name: constants.KubeadmKubeletSystemdDropinFilename, Type: "regular", Upstream: fmt.Sprintf("https://raw.githubusercontent.com/kubernetes/kubernetes/%s/build/debs/", constants.KubernetesVersion), Local: filepath.Join(constants.CacheDir, constants.KubeDirName), }, { Name: constants.CNIPluginsFilename, Type: "regular", Upstream: fmt.Sprintf("https://github.com/containernetworking/plugins/releases/download/%s/", constants.CNIVersion), Local: filepath.Join(constants.CacheDir, constants.CNIDirName), }, { Name: constants.FlannelManifestFilename, Type: "regular", Upstream: fmt.Sprintf("https://raw.githubusercontent.com/coreos/flannel/%s/Documentation/", constants.FlannelVersion), Local: filepath.Join(constants.CacheDir, constants.FlannelDirName), }, }
Functions ¶
func CreateSymLinks ¶
Create symlinks of all the files inside sourceDir to targetDir
func InitConfigurationFromFile ¶
func InitConfigurationFromFile(path string) (*apis.InitConfiguration, error)
func InstallMasterComponents ¶
func InstallMasterComponents(config *apis.InitConfiguration)
func InstallNodeComponents ¶
func InstallNodeComponents()
func JoinConfigurationFromFile ¶
func JoinConfigurationFromFile(path string) (*apis.JoinConfiguration, error)
func PopulateCache ¶
func PopulateCache()
func ReplaceString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.