Documentation ¶
Overview ¶
Package bootstrap defines the CAPKK bootstrap operations on the remote instance.
Index ¶
- type Service
- func (s *Service) AddUsers() error
- func (s *Service) CreateDirectory() error
- func (s *Service) DaemonReload() error
- func (s *Service) ExecInitScript() error
- func (s *Service) KubeadmReset(criSocket string) error
- func (s *Service) RemoveFiles() error
- func (s *Service) ResetNetwork() error
- func (s *Service) ResetTmpDirectory() error
- func (s *Service) SetHostname() error
- func (s *Service) UninstallK3s() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together.
func NewService ¶
func NewService(sshClient ssh.Interface, scope scope.LBScope, instanceScope *scope.InstanceScope) *Service
NewService returns a new service given the remote instance kubekey build-in bootstrap provision client.
func (*Service) CreateDirectory ¶
CreateDirectory creates some common directories.
func (*Service) DaemonReload ¶
DaemonReload reloads the systemd daemon and restart the containerd.
func (*Service) ExecInitScript ¶
ExecInitScript executes the init script on the remote instance.
func (*Service) KubeadmReset ¶
KubeadmReset resets the Kubernetes by using kubeadm.
func (*Service) RemoveFiles ¶
RemoveFiles removes some directories and files that may have been created by the Kubernetes and other related components.
func (*Service) ResetNetwork ¶
ResetNetwork resets the network configuration.
func (*Service) ResetTmpDirectory ¶
ResetTmpDirectory resets the temporary "/tmp/kubekey" directory.
func (*Service) SetHostname ¶
SetHostname sets the hostname of the machine.
func (*Service) UninstallK3s ¶
UninstallK3s uninstalls the k3s.