bootstrap

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FsMagicAUFS     = 0x61756673 // https://goo.gl/CBwx43
	FsMagicECRYPTFS = 0xF15F     // https://goo.gl/4akUXJ
	FsMagicZFS      = 0x2FC12FC1 // https://goo.gl/xTvzO5
)
View Source
const LoopbackNetConf string = `
{
    "cniVersion": "0.2.0",
    "type": "loopback"
}`
View Source
const LoopbackNetPath string = "/etc/cni/net.d/10-loopback.conf"
View Source
const NspawnNetConf string = `` /* 297-byte string literal not displayed */
View Source
const NspawnNetPath string = "/etc/cni/net.d/10-kube-spawn-net.conf"
View Source
const VarLibCniDir string = "/var/lib/cni/networks/kube-spawn-net"

Variables

This section is empty.

Functions

func CopyFiles added in v0.2.0

func CopyFiles(cfg *config.ClusterConfiguration) error

func Download

func Download(url, fpath string) error

func DownloadK8sBins

func DownloadK8sBins(cfg *config.ClusterConfiguration) error

func DownloadSocatBin

func DownloadSocatBin(cfg *config.ClusterConfiguration) error

func EnlargeStoragePool

func EnlargeStoragePool(poolSize int64) error

func EnsureBridge

func EnsureBridge() error

func EnsureRequirements

func EnsureRequirements(cfg *config.ClusterConfiguration) error

func GenerateScripts added in v0.2.0

func GenerateScripts(cfg *config.ClusterConfiguration) error

GenerateScripts writes in <kube-spawn-dir>/<cluster-name>/rootfs/... also create empty machine specific rootfs/ dirs

func GetIPAddressLegacy

func GetIPAddressLegacy(mach string) (string, error)

func GetPoolSize

func GetPoolSize(baseImage string, nodes int) (int64, error)

func PathSupportsOverlay

func PathSupportsOverlay(path string) error

PathSupportsOverlay checks whether the given path is compatible with OverlayFS. This method also calls isOverlayfsAvailable(). It returns error if OverlayFS is not supported.

func PoolImageExists added in v0.2.0

func PoolImageExists() bool

func PrepareCoreosImage added in v0.2.0

func PrepareCoreosImage() error

func WriteNetConf

func WriteNetConf() error

Types

type Node

type Node struct {
	Name string
	IP   string
}

func GetRunningNodes

func GetRunningNodes() ([]Node, error)

Jump to

Keyboard shortcuts

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