bootstrap

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 18 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"

Variables

View Source
var (
	BaseImageName string = "flatcar"
)

Functions

func Download

func Download(url, fpath string) error

func DownloadKubernetesBinaries added in v0.3.0

func DownloadKubernetesBinaries(k8sVersion, targetDir string) error

func DownloadSocatBin

func DownloadSocatBin(targetDir string) error

func EnlargeStoragePool

func EnlargeStoragePool(poolSize int64) error

func EnsureRequirements

func EnsureRequirements() error

func GetPoolSize

func GetPoolSize(baseImageName 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 PrepareBaseImage added in v0.3.0

func PrepareBaseImage() error

func WriteNetConf

func WriteNetConf() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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