cluster

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2015 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultClusterName = "kubernetes"
)

Functions

func DecodeConfigFromFile

func DecodeConfigFromFile(out *Config, loc string) error

func DefaultArtifactURL

func DefaultArtifactURL(ver string) string

func StackTemplateBody

func StackTemplateBody(defaultArtifactURL string) (string, error)

Types

type Cluster

type Cluster struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config, awsConfig *aws.Config) *Cluster

func (*Cluster) Create

func (c *Cluster) Create(tlsConfig *TLSConfig) error

func (*Cluster) Destroy

func (c *Cluster) Destroy() error

func (*Cluster) Info

func (c *Cluster) Info() (*ClusterInfo, error)

type ClusterInfo

type ClusterInfo struct {
	Name         string
	ControllerIP string
}

func (*ClusterInfo) String

func (c *ClusterInfo) String() string

type Config

type Config struct {
	ClusterName              string `yaml:"clusterName"`
	ExternalDNSName          string `yaml:"externalDNSName"`
	KeyName                  string `yaml:"keyName"`
	Region                   string `yaml:"region"`
	AvailabilityZone         string `yaml:"availabilityZone"`
	ArtifactURL              string `yaml:"artifactURL"`
	ControllerRootVolumeSize int    `yaml:"controllerRootVolumeSize"`
	WorkerCount              int    `yaml:"workerCount"`
	WorkerRootVolumeSize     int    `yaml:"workerRootVolumeSize"`
}

func NewDefaultConfig

func NewDefaultConfig(ver string) *Config

func (*Config) Valid

func (cfg *Config) Valid() error

type TLSConfig

type TLSConfig struct {
	CACertFile string
	CACert     []byte

	APIServerCertFile string
	APIServerCert     []byte
	APIServerKeyFile  string
	APIServerKey      []byte

	WorkerCertFile string
	WorkerCert     []byte
	WorkerKeyFile  string
	WorkerKey      []byte

	AdminCertFile string
	AdminCert     []byte
	AdminKeyFile  string
	AdminKey      []byte
}

Jump to

Keyboard shortcuts

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