Documentation
¶
Index ¶
- Variables
- func Addons(kmmCfg Config) error
- func CreateKubeConfig(cfg Config) (err error)
- func CreatePKI(cfg Config) (err error)
- func GetAssets(cfg Config) (assets string, err error)
- func GetKubeadmCfg(kmmCfg Config) (*kubeadmapi.MasterConfiguration, error)
- func SaveAssets(cfg Config, assets string) (err error)
- func UpdateMasterRoleLabelsAndTaints(kmmCfg Config) error
- func WriteManifests(kubeadmCfg Config) (err error)
- type Config
- type SharedAssets
Constants ¶
This section is empty.
Variables ¶
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 ¶
Addons - deploys the essential addons TODO: should update these TODO: use kubeadm directly
func CreateKubeConfig ¶
CreateKubeConfig - Creates all the kubeconfig files requires for masters
func GetAssets ¶
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 ¶
SaveAssets - will persist assets to disk
func UpdateMasterRoleLabelsAndTaints ¶
UpdateMasterRoleLabelsAndTaints will apply the master role taints and labels
func WriteManifests ¶
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 {}
SharedAssets - the data to be shared between all kubernetes masters