provider

package
v0.0.0-...-342e3d9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amazon

type Amazon struct {
}

func NewAmazon

func NewAmazon() *Amazon

NewAmazon is used to create a new client for using Amazon client to create RHEL 7 server cluster.

func (*Amazon) ProvisionCluster

func (amz *Amazon) ProvisionCluster() ([]deploy.CloudServer, error)
type Centurylink struct {
	// contains filtered or unexported fields
}

Centurylink has the data that is used for provisioning a server. Most of the data is passed in environment variables. The following env vars are required for provisioning a server in Centurylink, USERNAME, PASSWORD, GROUP_ID, CPU, MEMORY_GB, OPEN_TCP_PORTS

func NewCenturylink() *Centurylink

NewCenturylink is used to create a new client for using Centurylink client to create RHEL 7 server cluster.

func (Centurylink) ProvisionCluster

func (clc Centurylink) ProvisionCluster() ([]deploy.CloudServer, error)

ProvisionCluster is used to provision a cluster of RHEL7 VMs (1 Master + n Minions).

type CloudProvider

type CloudProvider interface {
	ProvisionCluster() ([]deploy.CloudServer, error)
}

CloudProvider is used to deploy kubernetes cluster on any of the supported cloud providers.

func New

func New(providerType string) CloudProvider

New is used to instantiate a CloudProvider to use to provision the cluster.

type Params

type Params struct {
	MinionCount int
}

Params are the common params that are passed to all the cloud provider. Specific params are passed as environment variables.

Jump to

Keyboard shortcuts

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