Documentation
¶
Index ¶
- Constants
- func CopyFiles(cfg *config.ClusterConfiguration) error
- func Download(url, fpath string) error
- func DownloadK8sBins(cfg *config.ClusterConfiguration) error
- func DownloadSocatBin(cfg *config.ClusterConfiguration) error
- func EnlargeStoragePool(poolSize int64) error
- func EnsureBridge() error
- func EnsureRequirements(cfg *config.ClusterConfiguration) error
- func GenerateScripts(cfg *config.ClusterConfiguration) error
- func GetIPAddressLegacy(mach string) (string, error)
- func GetPoolSize(baseImage string, nodes int) (int64, error)
- func PathSupportsOverlay(path string) error
- func PoolImageExists() bool
- func PrepareCoreosImage() error
- func WriteNetConf() error
- type Node
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 DownloadK8sBins ¶
func DownloadK8sBins(cfg *config.ClusterConfiguration) error
func DownloadSocatBin ¶
func DownloadSocatBin(cfg *config.ClusterConfiguration) error
func EnlargeStoragePool ¶
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 PathSupportsOverlay ¶
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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.