Creating Your First Cluster
This guide walks you through the process of setting up your first Kubernetes cluster with Stackbooster.io optimization. Follow these steps to start realizing cost savings and operational improvements for your containerized workloads.
Prerequisites
Before creating your first optimized cluster, ensure you have:
- Completed the AWS integration
- Administrative access to your AWS account
- Basic familiarity with Kubernetes concepts
kubectlinstalled on your local machine
Option 1: Connect an Existing EKS Cluster
If you already have EKS clusters running in AWS, connecting them to Stackbooster.io is straightforward:
- In your Stackbooster.io dashboard, navigate to "Clusters" > "Add Cluster"
- Select "Connect Existing Cluster"
- Choose your AWS account from the dropdown
- Select the region containing your cluster
- Choose your EKS cluster from the list
- Review the cluster details and click "Connect Cluster"
- Install the Stackbooster.io agent using the provided kubectl command:
kubectl apply -f https://api.stackbooster.io/k8s-agent/install/YOUR_CLUSTER_ID/- Wait for the agent status to change to "Connected" (typically 2-3 minutes)
- Complete the initial cluster configuration:
- Set resource limits and requests policies
- Configure scaling preferences
- Set up notification preferences
Option 2: Create a New Optimized Cluster
If you want to create a new EKS cluster that's optimized from day one:
In your Stackbooster.io dashboard, navigate to "Clusters" > "Add Cluster"
Select "Create New Cluster"
Choose your AWS account and region
Configure cluster basics:
- Cluster name
- Kubernetes version (we recommend the latest stable version)
- VPC settings (use existing or create new)
- Subnet configuration
Configure node groups with optimization in mind:
- Select "Cost-optimized" node group configuration
- Choose instance types based on your workload profile:
- General Purpose: Balanced CPU/memory ratio
- Compute Optimized: High CPU, standard memory
- Memory Optimized: Standard CPU, high memory
Enable Stackbooster.io advanced features:
- Spot instance integration for non-critical workloads
- Automated hibernation scheduling
- Defragmentation and bin packing
Configure cluster access:
- Create or select IAM roles
- Set up kubectl access for your team
Review your configuration and click "Create Cluster"
Monitor the creation progress (typically 10-15 minutes)
Initial Cluster Configuration
Once your cluster is connected or created, complete these configuration steps:
1. Set Workload Priorities
Categorize your workloads by priority to inform scaling decisions:
- Navigate to your cluster and select "Workload Priorities"
- Assign each namespace or workload to a priority tier:
- Critical: Never compromised for cost savings
- Important: Minimally impacted during cost optimizations
- Standard: Balanced approach to cost and performance
- Low: Aggressively optimized for cost savings
2. Configure Scaling Boundaries
Set appropriate limits for your autoscaling:
- Navigate to "Scaling Configuration"
- Define the following parameters:
- Minimum node count (cluster never scales below this)
- Maximum node count (cluster never scales above this)
- Scale-up responsiveness (how quickly to add nodes)
- Scale-down patience (how long to wait before removing nodes)
3. Set Hibernation Schedule (Optional)
If your cluster doesn't need to run 24/7:
- Navigate to "Hibernation Settings"
- Enable scheduled hibernation
- Define active hours (e.g., Monday-Friday, 8am-8pm)
- Configure wake-up triggers (e.g., API calls, CI/CD pipeline starts)
Verifying Your Setup
After completing the setup, verify that everything is working correctly:
Check the "Cluster Health" dashboard for:
- Agent status (should be "Connected")
- Node group status (should be "Active")
- Optimization status (should be "Analyzing" initially)
Review the "Initial Analysis" tab after 1-2 hours to see:
- Current resource utilization
- Identified optimization opportunities
- Projected cost savings
Test basic functionality by:
- Deploying a simple test application
- Monitoring its resource usage in the dashboard
- Observing how the cluster responds to load changes
Next Steps
Now that your first cluster is set up, consider these next steps:
- Learn about up-scaling strategies to handle traffic spikes
- Understand how downscaling works to maximize savings
- Explore cluster defragmentation for workload consolidation
- Set up alerts and notifications for important cluster events
For any issues encountered during setup, refer to our troubleshooting guide or contact Stackbooster.io support.
