- Newest
- Most votes
- Most comments
To create an EKS cluster for your testing scenarios, I can provide you with two eksctl commands that should work well for your use cases.
For your first goal (testing two small Spring Boot apps with Istio), you can use:
eksctl create cluster \
--name eks-learning \
--region us-east-1 \
--version 1.33 \
--nodegroup-name ng-learning \
--node-type t3.large \
--nodes 3 \
--nodes-min 2 \
--nodes-max 6 \
--managed
This creates a basic cluster with enough resources to run your Spring Boot applications and Istio. The command is simplified to focus on the essential parameters needed for your first test case.
For your second goal (testing with additional components like Kong, Keycloak, Prometheus, etc.), you'll need a more robust cluster:
eksctl create cluster \
--name eks-monitoring \
--region us-east-1 \
--version 1.33 \
--nodegroup-name ng-monitoring \
--node-type t3.xlarge \
--nodes 4 \
--nodes-min 3 \
--nodes-max 8 \
--managed \
--with-oidc \
--asg-access \
--full-ecr-access
This second command creates a cluster with larger instances (t3.xlarge) and more nodes to handle the additional monitoring and observability components you plan to deploy. I've included the OIDC provider setup which will be useful for service accounts, and retained the ECR access and auto-scaling capabilities.
Cluster creation typically takes 15-20 minutes. If you're experiencing timeout issues, try the following:
- Ensure your AWS CLI credentials are properly configured
- Check your network connectivity
- Consider using a configuration file approach instead of the command line for more complex setups
After the cluster is created, you'll need to update your kubeconfig to connect to it:
aws eks update-kubeconfig --name eks-learning --region us-east-1
Sources
Create an Amazon EKS cluster - Amazon EKS
Get started with Amazon EKS – eksctl - Amazon EKS
Tutorial - Eksctl User Guide
Creating and managing clusters - Eksctl User Guide
The timeout issues you're experiencing could be due to several factors - let me provide improved configurations.
Command 1: Basic Cluster (2 Spring Boot Apps + Istio)
eksctl create cluster \ --name eks-learning-basic \ --version 1.31 \ --region us-east-1 \ --nodegroup-name ng-apps \ --node-type t3.large \ --nodes 3 \ --nodes-min 2 \ --nodes-max 4 \ --managed \ --with-oidc \ --asg-access \ --full-ecr-access \ --enable-ssm \ --timeout 45m \ --vpc-nat-mode HighlyAvailable \ --zones us-east-1a,us-east-1b
Command 2: Full Observability Stack (Apps + Istio + Monitoring/Tracing)
eksctl create cluster \ --name eks-learning-full \ --version 1.31 \ --region us-east-1 \ --managed \ --with-oidc \ --enable-ssm \ --timeout 45m \ --vpc-nat-mode HighlyAvailable \ --zones us-east-1a,us-east-1b \ --nodegroup-name ng-apps \ --node-type t3.xlarge \ --nodes 2 \ --nodes-min 2 \ --nodes-max 3 \ --asg-access \ --full-ecr-access \ --node-labels workload=apps \ --nodegroup-name ng-observability \ --node-type t3.xlarge \ --nodes 3 \ --nodes-min 2 \ --nodes-max 5 \ --asg-access \ --full-ecr-access \ --node-labels workload=monitoring
Key Changes to Fix Timeouts:
- Added
--timeout 45m- Default is 25m which may be insufficient - Specified
--zones- Explicitly using 2 AZs prevents potential availability issues - Added
--vpc-nat-mode HighlyAvailable- Better network reliability - Removed
--verbose 4- Can sometimes cause issues; use only when debugging - Command 2 uses separate node groups - Isolates workload types for better resource management
Troubleshooting:
If you are still seeing the timeout:
- Check service quotas:
aws service-quotas list-service-quotas --service-code eks - Try a different region:
us-west-2often has better availability - Use smaller initial cluster: Start with 2 nodes, scale up later
- Check AWS status: https://health.aws.amazon.com/health/status
After Cluster Creation you can use the below command to do checks :
# Configure kubectl aws eks update-kubeconfig --region us-east-1 --name <cluster-name> # Verify nodes kubectl get nodes # Install Istio (for both use cases) istioctl install --set profile=default -y # Label namespace for Istio injection kubectl label namespace default istio-injection=enabled
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
