Documentation ¶
Index ¶
- Constants
- func GetK8sVersion() (string, error)
- func SetUpAuthentication(kubeCluster, currentCluster *Cluster) error
- type Cluster
- func (c *Cluster) DeployClusterPlanes() error
- func (c *Cluster) DeployK8sAddOns() error
- func (c *Cluster) DeployNetworkPlugin() error
- func (c *Cluster) GetClusterState() (*Cluster, error)
- func (c *Cluster) InvertIndexHosts() error
- func (c *Cluster) RunKubectlCmd(kubectlCmd *KubectlCommand) error
- func (c *Cluster) SaveClusterState(clusterFile string) error
- func (c *Cluster) SetUpHosts() error
- func (c *Cluster) TunnelHosts() error
- type KubectlCommand
Constants ¶
View Source
const ( ClusterDNSServerIPEnvName = "RKE_DNS_SERVER" ClusterDomainEnvName = "RKE_CLUSTER_DOMAIN" )
View Source
const ( X509AuthenticationProvider = "x509" StateConfigMapName = "cluster-state" UpdateStateTimeout = 30 GetStateTimeout = 30 KubernetesClientTimeOut = 30 )
View Source
const ( KubectlImage = "melsayed/kubectl:latest" KubctlContainer = "kubectl" )
View Source
const (
ClusterCIDREnvName = "RKE_CLUSTER_CIDR"
)
Variables ¶
This section is empty.
Functions ¶
func GetK8sVersion ¶
func SetUpAuthentication ¶
Types ¶
type Cluster ¶
type Cluster struct { v1.RancherKubernetesEngineConfig `yaml:",inline"` 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) DeployClusterPlanes ¶
func (*Cluster) DeployK8sAddOns ¶
func (*Cluster) DeployNetworkPlugin ¶
func (*Cluster) GetClusterState ¶
func (*Cluster) InvertIndexHosts ¶
func (*Cluster) RunKubectlCmd ¶
func (c *Cluster) RunKubectlCmd(kubectlCmd *KubectlCommand) error
func (*Cluster) SaveClusterState ¶
func (*Cluster) SetUpHosts ¶
func (*Cluster) TunnelHosts ¶
type KubectlCommand ¶
Click to show internal directories.
Click to hide internal directories.