Versions in this module Expand all Collapse all v0 v0.7.2 Nov 30, 2021 v0.7.1 Mar 12, 2021 v0.7.0 Feb 28, 2021 Changes in this version type Kubei + Online bool v0.6.1 Oct 26, 2020 Changes in this version type Cluster + func (c *Cluster) String() string v0.6.0 Aug 20, 2020 Changes in this version + var CertAPIServer = Cert + var CertAPIServerAdminClient = Cert + var CertAPIServerControllerManagerClient = Cert + var CertAPIServerKubeletClient = Cert + var CertAPIServerSchedulerClient = Cert + var CertEtcdAPIClient = Cert + var CertEtcdCA = Cert + var CertEtcdHealthcheck = Cert + var CertEtcdPeer = Cert + var CertEtcdServer = Cert + var CertFrontProxyCA = Cert + var CertFrontProxyClient = Cert + var CertKubeletClient = Cert + var CertRootCA = Cert + func DefaultKubeiCfg(k *Kubei) + func DefaultkubeadmCfg(k *Kubeadm, ki *Kubei) + func GetAPIServerAltNames(node *Node, cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + func GetEtcdAltNames(node *Node, cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + func GetEtcdPeerAltNames(node *Node, cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + type Addons struct + type Calico struct + Image Image + func (c *Calico) GetImage(image string) string + type Cert struct + BaseName string + CAName string + Cert *x509.Certificate + Config pkiutil.CertConfig + ConfigMutators []ConfigMutatorsFunc + IsKubeConfig bool + Key crypto.Signer + KubeConfig clientcmdapi.Config + LongName string + Name string + func (c *Cert) CreateAsCA(node *Node, ic *kubeadmapi.InitConfiguration) error + func (c *Cert) CreateFromCA(node *Node, ic *kubeadmapi.InitConfiguration, caCert *x509.Certificate, ...) error + func (c *Cert) CreateKubeConfig(ic *kubeadmapi.InitConfiguration, caCert *x509.Certificate) error + func (c *Cert) GetConfig(node *Node, ic *kubeadmapi.InitConfiguration) (*pkiutil.CertConfig, error) + type CertificateMap map[string]*Cert + func (m CertificateMap) CertTree() (CertificateTree, error) + type CertificateTree map[*Cert]Certificates + func (t CertificateTree) Create(node *Node, ic *kubeadmapi.InitConfiguration, notAfterTime time.Duration) error + func (t CertificateTree) CreateKubeConfig(ic *kubeadmapi.InitConfiguration) error + type Certificates []*Cert + func GetDefaultCertList() Certificates + func (c Certificates) AsMap() CertificateMap + type Cluster struct + Kubeadm *Kubeadm + Mutex sync.Mutex + func NewCluster() *Cluster + func (c *Cluster) RunOnAllNodes(f func(*Node) error) error + func (c *Cluster) RunOnFirstMaster(f func(*Node) error) error + func (c *Cluster) RunOnMasters(f func(*Node) error) error + func (c *Cluster) RunOnOtherMasters(f func(*Node) error) error + func (c *Cluster) RunOnOtherMastersAndPrintLog(f func(*Node) error, s string) error + func (c *Cluster) RunOnOtherMastersOneByOne(f func(*Node) error) error + func (c *Cluster) RunOnWorkers(f func(*Node) error) error + func (c *Cluster) RunOnWorkersAndPrintLog(f func(*Node) error, s string) error + type ClusterNodes struct + Masters []*Node + Workers []*Node + func (c *ClusterNodes) FirstMasterRun(cmd string) error + func (c *ClusterNodes) GetAllMastersHost() []string + func (c *ClusterNodes) GetAllNodes() []*Node + func (c *ClusterNodes) LogRun(f func(node *Node) error) error + func (c *ClusterNodes) MastersRun(cmd string) error + func (c *ClusterNodes) Run(cmd string) error + func (c *ClusterNodes) WorkersRun(cmd string) error + type ConfigMutatorsFunc func(*Node, *kubeadmapi.InitConfiguration, *pkiutil.CertConfig) error + type ContainerEngine struct + Docker Docker + Type string + type Docker struct + CGroupDriver string + LogDriver string + LogOptsMaxSize string + StorageDriver string + Version string + type Flannel struct + BackendType string + Image Image + type HA struct + LocalSLB LocalSLB + Type string + type HostInfo struct + Host string + Key string + Password string + Port string + User string + type Image struct + ImageName string + ImageRepository string + ImageTag string + func (i *Image) GetImage() string + type Install struct + Type string + type JumpServer struct + HostInfo HostInfo + type Kubeadm struct + func NewKubeadm() *Kubeadm + type Kubei struct + Addons Addons + CertNotAfterTime int + ClusterNodes ClusterNodes + ContainerEngine ContainerEngine + HA HA + Install Install + JumpServer JumpServer + Kubernetes Kubernetes + NetworkPlugins NetworkPlugins + OfflineFile string + Reset Reset + func NewKubei() *Kubei + type Kubernetes struct + Token Token + Version string + type LocalSLB struct + Nginx Nginx + Type string + type NetworkPlugins struct + Calico Calico + Flannel Flannel + Type string + type Nginx struct + Image Image + Port string + type Node struct + CertificateTree CertificateTree + HostInfo HostInfo + InstallType string + IsSend bool + Name string + PackageManagementType string + SSH *ssh.Client + func (n *Node) Run(cmd string) error + func (n *Node) RunOut(cmd string) ([]byte, error) + type Reset struct + RemoveContainerEngine bool + RemoveKubeComponent bool + type Token struct + CaCertHash string + CertificateKey string + Token string