cluster

package
v0.0.2-dev Latest Latest
Warning

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

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

Documentation

Index

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

func GetLocalKubeConfig

func GetLocalKubeConfig(configPath string) string

func ReconcileCluster

func ReconcileCluster(kubeCluster, currentCluster *Cluster) error

func SetUpAuthentication

func SetUpAuthentication(kubeCluster, currentCluster *Cluster) error

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

func (*Cluster) ApplySystemAddonExcuteJob

func (c *Cluster) ApplySystemAddonExcuteJob(addonJob string) error

func (*Cluster) ClusterUpgrade

func (c *Cluster) ClusterUpgrade() 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) DeployUserAddOns

func (c *Cluster) DeployUserAddOns() error

func (*Cluster) GetClusterState

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

func (*Cluster) InvertIndexHosts

func (c *Cluster) InvertIndexHosts() error

func (*Cluster) SaveClusterState

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

func (*Cluster) SetUpHosts

func (c *Cluster) SetUpHosts() error

func (*Cluster) StoreAddonConfigMap

func (c *Cluster) StoreAddonConfigMap(addonYaml string, addonName string) error

func (*Cluster) TunnelHosts

func (c *Cluster) TunnelHosts() error

Jump to

Keyboard shortcuts

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