cluster

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 GetK8sVersion() (string, error)

func SetUpAuthentication

func SetUpAuthentication(kubeCluster, currentCluster *Cluster) error

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 ParseConfig(clusterFile string) (*Cluster, error)

func (*Cluster) DeployClusterPlanes

func (c *Cluster) DeployClusterPlanes() error

func (*Cluster) DeployK8sAddOns

func (c *Cluster) DeployK8sAddOns() error

func (*Cluster) DeployNetworkPlugin

func (c *Cluster) DeployNetworkPlugin() error

func (*Cluster) GetClusterState

func (c *Cluster) GetClusterState() (*Cluster, error)

func (*Cluster) InvertIndexHosts

func (c *Cluster) InvertIndexHosts() error

func (*Cluster) RunKubectlCmd

func (c *Cluster) RunKubectlCmd(kubectlCmd *KubectlCommand) error

func (*Cluster) SaveClusterState

func (c *Cluster) SaveClusterState(clusterFile string) error

func (*Cluster) SetUpHosts

func (c *Cluster) SetUpHosts() error

func (*Cluster) TunnelHosts

func (c *Cluster) TunnelHosts() error

type KubectlCommand

type KubectlCommand struct {
	Cmd []string
	Env []string
}

Jump to

Keyboard shortcuts

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