Documentation ¶
Overview ¶
Package machine defines common machine type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type int
Type represents a machine type.
const ( // TypeUnknown represents undefined node type, when there is no machine configuration yet. TypeUnknown Type = iota // unknown // TypeInit type designates the first control plane node to come up. You can think of it like a bootstrap node. // This node will perform the initial steps to bootstrap the cluster -- generation of TLS assets, starting of the control plane, etc. TypeInit // init // TypeControlPlane designates the node as a control plane member. // This means it will host etcd along with the Kubernetes controlplane components such as API Server, Controller Manager, Scheduler. TypeControlPlane // controlplane // TypeWorker designates the node as a worker node. // This means it will be an available compute node for scheduling workloads. TypeWorker // worker )
func (Type) IsControlPlane ¶
IsControlPlane returns true if the type is a control plane node.
func (Type) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*Type) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.