Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3d/pkg/types/types.go

27 lines
568 B

5 years ago
package types
// DefaultClusterName specifies the default name used for newly created clusters
const DefaultClusterName = "k3s-default"
// DefaultK3sImageRepo specifies the default image repository for the used k3s image
const DefaultK3sImageRepo = "docker.io/rancher/k3s"
// Cluster describes a k3d cluster
type Cluster struct {
Name string
Network string
Nodes []Node
}
// Node describes a k3d node
type Node struct {
Name string
Role string
Image string
Volumes []string
Env []string
Args []string
Ports []string
Restart bool
}