Documentation ¶
Index ¶
- Constants
- func GetK8sVersion(localConfigPath string) (string, error)
- func GetLocalKubeConfig(configPath string) string
- func ReconcileCluster(kubeCluster, currentCluster *Cluster) error
- func SetUpAuthentication(kubeCluster, currentCluster *Cluster) error
- type Cluster
- func (c *Cluster) ApplySystemAddonExcuteJob(addonJob string) error
- func (c *Cluster) ClusterUpgrade() error
- func (c *Cluster) DeployClusterPlanes() error
- func (c *Cluster) DeployK8sAddOns() error
- func (c *Cluster) DeployNetworkPlugin() error
- func (c *Cluster) DeployUserAddOns() error
- func (c *Cluster) GetClusterState() (*Cluster, error)
- func (c *Cluster) InvertIndexHosts() error
- func (c *Cluster) SaveClusterState(clusterFile string) error
- func (c *Cluster) SetUpHosts() error
- func (c *Cluster) StoreAddonConfigMap(addonYaml string, addonName string) error
- func (c *Cluster) TunnelHosts() error
Constants ¶
View Source
const ( KubeDNSAddonResourceName = "rke-kubedns-addon" UserAddonResourceName = "rke-user-addon" )
View Source
const ( X509AuthenticationProvider = "x509" DefaultClusterConfig = "cluster.yml" StateConfigMapName = "cluster-state" UpdateStateTimeout = 30 GetStateTimeout = 30 KubernetesClientTimeOut = 30 )
View Source
const (
NetworkPluginResourceName = "rke-netwok-plugin"
)
Variables ¶
This section is empty.
Functions ¶
func GetK8sVersion ¶
func GetLocalKubeConfig ¶
func ReconcileCluster ¶
func SetUpAuthentication ¶
Types ¶
type Cluster ¶
type Cluster struct { v1.RancherKubernetesEngineConfig `yaml:",inline"` ConfigPath string `yaml:"config_path"` LocalKubeConfigPath string EtcdHosts []hosts.Host WorkerHosts []hosts.Host ControlPlaneHosts []hosts.Host KubeClient *kubernetes.Clientset KubernetesServiceIP net.IP Certificates map[string]pki.CertificatePKI ClusterDomain string ClusterCIDR string ClusterDNSServer string }
func ParseConfig ¶
func (*Cluster) ApplySystemAddonExcuteJob ¶
func (*Cluster) ClusterUpgrade ¶
func (*Cluster) DeployClusterPlanes ¶
func (*Cluster) DeployK8sAddOns ¶
func (*Cluster) DeployNetworkPlugin ¶
func (*Cluster) DeployUserAddOns ¶
func (*Cluster) GetClusterState ¶
func (*Cluster) InvertIndexHosts ¶
func (*Cluster) SaveClusterState ¶
func (*Cluster) SetUpHosts ¶
func (*Cluster) StoreAddonConfigMap ¶
func (*Cluster) TunnelHosts ¶
Click to show internal directories.
Click to hide internal directories.