kubeadm

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// PkiDir - The directory kubeadm will store all pki assets
	PkiDir string = kubeadmconstants.KubernetesDir + "/pki"

	// CaCertFile the name of the Kube CA cert file (as used by kubeadm)
	CaCertFile string = kubeadmconstants.KubernetesDir + "/pki" + "/" + kubeadmconstants.CACertAndKeyBaseName + ".crt"

	// CaKeyFile the file name of Kube CA key file (as used by kubeadm)
	CaKeyFile string = kubeadmconstants.KubernetesDir + "/pki" + "/" + kubeadmconstants.CACertAndKeyBaseName + ".key"
)

Functions

func Addons

func Addons(kmmCfg Config) error

Addons - deploys the essential addons TODO: should update these TODO: use kubeadm directly

func CreateKubeConfig

func CreateKubeConfig(cfg Config) (err error)

CreateKubeConfig - Creates all the kubeconfig files requires for masters

func CreatePKI

func CreatePKI(cfg Config) (err error)

CreatePKI - generates all PKI assests on to disk

func GetAssets

func GetAssets(cfg Config) (assets string, err error)

GetAssets - For getting assets off disk Return an error if there are no assets (and empty string)

func GetKubeadmCfg

func GetKubeadmCfg(kmmCfg Config) (*kubeadmapi.MasterConfiguration, error)

GetKubeadmCfg - will transfer config from kmm to a config struct as used by kubeadm internaly TODO: This is a hack until we can use kubeadm cmd directly...

func SaveAssets

func SaveAssets(cfg Config, assets string) (err error)

SaveAssets - will persist assets to disk

func UpdateMasterRoleLabelsAndTaints

func UpdateMasterRoleLabelsAndTaints(kmmCfg Config) error

UpdateMasterRoleLabelsAndTaints will apply the master role taints and labels

func WriteManifests

func WriteManifests(kubeadmCfg Config) (err error)

WriteManifests - will save kubernetes master manifests from kmm config struct

Types

type Config

type Config struct {
	EtcdClientConfig etcd.ClientConfig
	CaCert           string
	CaKey            string
	APIServer        *url.URL
	KubeletID        string
	CloudProvider    string
	KubeVersion      string
	MasterCount      uint
	PodNetworkCidr   string
}

Config represents runtime params cfg structure.

type SharedAssets

type SharedAssets struct {
	FrontProxyCa    string
	FrontProxyCaKey string
	SaPub           string
	SaKey           string
}

SharedAssets - the data to be shared between all kubernetes masters

Directories

Path Synopsis
master

Jump to

Keyboard shortcuts

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