|
|
@ -331,25 +331,26 @@ type NodeIP struct { |
|
|
|
|
|
|
|
|
|
|
|
// Node describes a k3d node
|
|
|
|
// Node describes a k3d node
|
|
|
|
type Node struct { |
|
|
|
type Node struct { |
|
|
|
Name string `yaml:"name" json:"name,omitempty"` |
|
|
|
Name string `yaml:"name" json:"name,omitempty"` |
|
|
|
Role Role `yaml:"role" json:"role,omitempty"` |
|
|
|
Role Role `yaml:"role" json:"role,omitempty"` |
|
|
|
Image string `yaml:"image" json:"image,omitempty"` |
|
|
|
Image string `yaml:"image" json:"image,omitempty"` |
|
|
|
Volumes []string `yaml:"volumes" json:"volumes,omitempty"` |
|
|
|
Volumes []string `yaml:"volumes" json:"volumes,omitempty"` |
|
|
|
Env []string `yaml:"env" json:"env,omitempty"` |
|
|
|
Env []string `yaml:"env" json:"env,omitempty"` |
|
|
|
Cmd []string // filled automatically based on role
|
|
|
|
Cmd []string // filled automatically based on role
|
|
|
|
Args []string `yaml:"extraArgs" json:"extraArgs,omitempty"` |
|
|
|
Args []string `yaml:"extraArgs" json:"extraArgs,omitempty"` |
|
|
|
Ports nat.PortMap `yaml:"portMappings" json:"portMappings,omitempty"` |
|
|
|
Ports nat.PortMap `yaml:"portMappings" json:"portMappings,omitempty"` |
|
|
|
Restart bool `yaml:"restart" json:"restart,omitempty"` |
|
|
|
Restart bool `yaml:"restart" json:"restart,omitempty"` |
|
|
|
Created string `yaml:"created" json:"created,omitempty"` |
|
|
|
Created string `yaml:"created" json:"created,omitempty"` |
|
|
|
Labels map[string]string // filled automatically
|
|
|
|
Labels map[string]string // filled automatically
|
|
|
|
Networks []string // filled automatically
|
|
|
|
K3sNodeLabels map[string]string `yaml:"k3sNodeLabels" json:"k3sNodeLabels,omitempty"` |
|
|
|
ExtraHosts []string // filled automatically
|
|
|
|
Networks []string // filled automatically
|
|
|
|
ServerOpts ServerOpts `yaml:"serverOpts" json:"serverOpts,omitempty"` |
|
|
|
ExtraHosts []string // filled automatically
|
|
|
|
AgentOpts AgentOpts `yaml:"agentOpts" json:"agentOpts,omitempty"` |
|
|
|
ServerOpts ServerOpts `yaml:"serverOpts" json:"serverOpts,omitempty"` |
|
|
|
GPURequest string // filled automatically
|
|
|
|
AgentOpts AgentOpts `yaml:"agentOpts" json:"agentOpts,omitempty"` |
|
|
|
Memory string // filled automatically
|
|
|
|
GPURequest string // filled automatically
|
|
|
|
State NodeState // filled automatically
|
|
|
|
Memory string // filled automatically
|
|
|
|
IP NodeIP // filled automatically
|
|
|
|
State NodeState // filled automatically
|
|
|
|
|
|
|
|
IP NodeIP // filled automatically
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ServerOpts describes some additional server role specific opts
|
|
|
|
// ServerOpts describes some additional server role specific opts
|
|
|
|