cluster

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVPCCIDR             = "10.0.0.0/16"
	DefaultInstanceCIDR        = "10.0.0.0/24"
	DefaultControllerIP        = "10.0.0.50"
	DefaultPodCIDR             = "10.2.0.0/16"
	DefaultServiceCIDR         = "10.3.0.0/24"
	DefaultKubernetesServiceIP = "10.3.0.1"
	DefaultDNSServiceIP        = "10.3.0.10"
)

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"`
	ReleaseChannel           string `yaml:"releaseChannel"`
	ControllerInstanceType   string `yaml:"controllerInstanceType"`
	ControllerRootVolumeSize int    `yaml:"controllerRootVolumeSize"`
	WorkerCount              int    `yaml:"workerCount"`
	WorkerInstanceType       string `yaml:"workerInstanceType"`
	WorkerRootVolumeSize     int    `yaml:"workerRootVolumeSize"`
	WorkerSpotPrice          string `yaml:"workerSpotPrice"`
	VPCCIDR                  string `yaml:"vpcCIDR"`
	InstanceCIDR             string `yaml:"instanceCIDR"`
	ControllerIP             string `yaml:"controllerIP"`
	PodCIDR                  string `yaml:"podCIDR"`
	ServiceCIDR              string `yaml:"serviceCIDR"`
	KubernetesServiceIP      string `yaml:"kubernetesServiceIP"`
	DNSServiceIP             string `yaml:"dnsServiceIP"`
}

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