Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backends ¶
type Backends struct {
// contains filtered or unexported fields
}
Backends is a set of servers
type Cluster ¶
type Cluster struct { // Nodes is a map of Node indexed by their IP Nodes map[string]*Node // Wait group for goroutines Wg sync.WaitGroup // Error channel for goroutines ErrCh chan error // Temporary path in the host for downloaded files Tempdir string // Services to download and deploy to the nodes Components []map[string]string // CACerts holds peer and client CAs CACerts map[string]map[string][]byte }
Cluster represents a K3s cluster
func NewCluster ¶
NewCluster parses flags and creates initial Node structs
type Node ¶
type Node struct { // Path for etcd data DataDir string // Path for the binaries BinDir string // Path for the certificates CfgDir string // Parameter in the k3s command to set etcd servers DataStore string // Parameter in the etcd command to set peer etcd servers Endpoints string // Files to be created in the nodes indexed by their full path Files map[string]string IP string User string Pass string Name string SSHKey string SSHPort string SSHClient *ssh.Client SFTPClient *sftp.Client }
Node is a cluster member
Click to show internal directories.
Click to hide internal directories.