docker

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadBalancer

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

LoadBalancer manages the load balancer for a specific docker cluster.

func NewLoadBalancer

func NewLoadBalancer(name string, logger logr.Logger) (*LoadBalancer, error)

NewLoadBalancer returns a new helper for managing a docker loadbalancer with a given name.

func (*LoadBalancer) Create

func (s *LoadBalancer) Create() error

Create creates a docker container hosting a load balancer for the cluster.

func (*LoadBalancer) Delete

func (s *LoadBalancer) Delete() error

Delete the docker containers hosting a loadbalancer for the cluster.

func (*LoadBalancer) IP

func (s *LoadBalancer) IP() (string, error)

IP returns the load balancer IP address

func (*LoadBalancer) UpdateConfiguration

func (s *LoadBalancer) UpdateConfiguration() error

UpdateConfiguration updates the external load balancer configuration with new control plane nodes.

type Machine

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

Machine implement a service for managing the docker containers hosting a kubernetes nodes.

func NewMachine

func NewMachine(cluster, machine, image string, logger logr.Logger) (*Machine, error)

NewMachine returns a new Machine service for the given Cluster/DockerCluster pair.

func (*Machine) ContainerName

func (m *Machine) ContainerName() string

ContainerName return the name of the container for this machine

func (*Machine) Create

func (m *Machine) Create(role string, version *string) error

Create creates a docker container hosting a Kubernetes node.

func (*Machine) Delete

func (m *Machine) Delete() error

Delete deletes a docker container hosting a Kubernetes node.

func (*Machine) ExecBootstrap

func (m *Machine) ExecBootstrap(data string) error

ExecBootstrap runs bootstrap on a node, this is generally `kubeadm <init|join>`

func (*Machine) KubeadmReset

func (m *Machine) KubeadmReset() error

KubeadmReset will run `kubeadm reset` on the machine.

func (*Machine) ProviderID

func (m *Machine) ProviderID() string

ProviderID return the provider identifier for this machine

func (*Machine) SetNodeProviderID

func (m *Machine) SetNodeProviderID() error

SetNodeProviderID sets the docker provider ID for the kubernetes node

Jump to

Keyboard shortcuts

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