K3sAgentResource Constructors
ClassConstructors1 member
Represents a k3s agent (worker) node belonging to a
K3sClusterResource. Constructor(string, K3sClusterResource)Section titled Constructor(string, K3sClusterResource) Represents a k3s agent (worker) node belonging to a
K3sClusterResource. public sealed class K3sAgentResource{ public K3sAgentResource( string name, K3sClusterResource cluster) { // ... }}Parameters
namestringThe resource name, e.g. k8s-agent-0.clusterK3sClusterResourceThe parent k3s cluster resource.Remarks
Agent nodes run
k3s agent and join the server at https://{serverName}:6443 using DCP's Docker DNS. They start in parallel with the server without a WaitFor dependency — k3s's built-in retry loop handles the connection timing. The cluster's health check waits for all 1 + AgentCount nodes to reach Ready state before the cluster resource transitions to Running. Agent nodes are created automatically by AddK3sCluster when K3sClusterOptions.AgentCount is greater than zero.