0
0
AWScloud~10 mins

Node groups (managed, self-managed, Fargate) in AWS - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Node groups (managed, self-managed, Fargate)
Start: Create EKS Cluster
Choose Node Group Type
Managed
Provision EC2
Register Nodes
Cluster Ready with Nodes
Use Cluster
This flow shows starting an EKS cluster, choosing a node group type (managed, self-managed, or Fargate), provisioning resources accordingly, and having nodes ready for workloads.
Execution Sample
AWS
eksctl create cluster --name my-cluster --managed
# Creates cluster with managed node group

eksctl create nodegroup --cluster my-cluster --name self-managed --nodes 2
# Adds self-managed nodes

kubectl apply -f fargate-profile.yaml
# Enables Fargate for serverless pods
Commands to create an EKS cluster with managed nodes, add self-managed nodes, and enable Fargate for serverless pods.
Process Table
StepActionNode Group TypeResource ProvisionedNode RegistrationCluster State
1Create EKS clusterNoneControl PlaneNo nodes yetCluster created, no nodes
2Create managed node groupManagedEC2 instances by AWSAuto-registeredCluster with managed nodes
3Create self-managed node groupSelf-ManagedEC2 instances by userManual registrationCluster with managed and self-managed nodes
4Apply Fargate profileFargateServerless computeNo nodes, pods run serverlessCluster with all node types
5Run podsAllPods scheduledPods run on respective nodesCluster fully operational
6End---All node groups active and ready
💡 All node groups provisioned and cluster ready for workloads
Status Tracker
VariableStartAfter Step 2After Step 3After Step 4Final
Cluster StateNo clusterCluster with managed nodesCluster with managed + self-managed nodesCluster with managed + self-managed + FargateFully operational cluster
Managed Nodes0Provisioned and registeredProvisioned and registeredProvisioned and registeredProvisioned and registered
Self-Managed Nodes00Provisioned and registeredProvisioned and registeredProvisioned and registered
Fargate Nodes000Enabled (serverless pods)Enabled (serverless pods)
Key Moments - 3 Insights
Why do managed node groups auto-register nodes but self-managed require manual registration?
Managed node groups are created and controlled by AWS EKS, so nodes automatically join the cluster (see execution_table step 2). Self-managed nodes are created by the user and need manual setup to join (step 3).
How does Fargate differ from managed and self-managed node groups in resource provisioning?
Fargate runs pods on serverless compute without provisioning EC2 instances (step 4). Managed and self-managed node groups provision EC2 instances.
Can all three node group types run workloads simultaneously?
Yes, after all are set up (step 5), pods can run on managed nodes, self-managed nodes, or Fargate serverless compute.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table at step 3. What is the node registration status for self-managed nodes?
AAuto-registered by AWS
BManual registration required
CNo registration needed
DRegistered by Fargate
💡 Hint
Check the 'Node Registration' column at step 3 in execution_table
At which step does the cluster first have serverless compute enabled?
AStep 2
BStep 3
CStep 4
DStep 5
💡 Hint
Look for 'Fargate' and 'Serverless compute' in the 'Resource Provisioned' column
If you skip creating a self-managed node group, how does the 'Self-Managed Nodes' variable change after step 3?
AIt remains 0
BIt becomes provisioned
CIt becomes enabled but unregistered
DIt becomes serverless
💡 Hint
Refer to variable_tracker row for 'Self-Managed Nodes' after step 3
Concept Snapshot
Node groups in EKS are ways to run your workloads:
- Managed node groups: AWS creates and manages EC2 nodes, auto-registered.
- Self-managed node groups: You create EC2 nodes, manual registration.
- Fargate: Serverless, no EC2 nodes, pods run on demand.
Choose based on control, management, and cost needs.
Full Transcript
This visual execution shows how an EKS cluster is created and how different node groups are added. First, the cluster control plane is created. Then, managed node groups provision EC2 instances automatically registered to the cluster. Next, self-managed node groups require the user to provision EC2 instances and manually register them. Fargate profiles enable serverless compute where pods run without EC2 nodes. The cluster can run workloads on all node types simultaneously. Variables track cluster state and node counts after each step. Key moments clarify why registration differs and how Fargate works. Quiz questions test understanding of node registration, serverless enablement, and variable changes.