cluster

package
v0.0.0-...-66fd6c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	X509AuthenticationProvider = "x509"
	StateConfigMapName         = "cluster-state"
	UpdateStateTimeout         = 30
	GetStateTimeout            = 30
	KubernetesClientTimeOut    = 30
)

Variables

This section is empty.

Functions

func SetUpAuthentication

func SetUpAuthentication(kubeCluster, currentCluster *Cluster, authType string) error

Types

type Cluster

type Cluster struct {
	Services            services.Services `yaml:"services"`
	Hosts               []hosts.Host      `yaml:"hosts"`
	EtcdHosts           []hosts.Host
	WorkerHosts         []hosts.Host
	ControlPlaneHosts   []hosts.Host
	KClient             *kubernetes.Clientset
	KubernetesServiceIP net.IP
	Certificates        map[string]pki.CertificatePKI
	ClusterDomain       string
}

func ParseConfig

func ParseConfig(clusterFile string) (*Cluster, error)

func (*Cluster) DeployClusterPlanes

func (c *Cluster) DeployClusterPlanes() 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(authType 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