Documentation ¶
Index ¶
- type LoadBalancer
- type Machine
- func (m *Machine) ContainerName() string
- func (m *Machine) Create(role string, version *string) error
- func (m *Machine) Delete() error
- func (m *Machine) ExecBootstrap(data string) error
- func (m *Machine) KubeadmReset() error
- func (m *Machine) ProviderID() string
- func (m *Machine) SetNodeProviderID() error
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 ¶
NewMachine returns a new Machine service for the given Cluster/DockerCluster pair.
func (*Machine) ContainerName ¶
ContainerName return the name of the container for this machine
func (*Machine) ExecBootstrap ¶
ExecBootstrap runs bootstrap on a node, this is generally `kubeadm <init|join>`
func (*Machine) KubeadmReset ¶
KubeadmReset will run `kubeadm reset` on the machine.
func (*Machine) ProviderID ¶
ProviderID return the provider identifier for this machine
func (*Machine) SetNodeProviderID ¶
SetNodeProviderID sets the docker provider ID for the kubernetes node