Editing Eksctl create cluster

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
[[eksctl create]] cluster
 
 
[[eksctl create cluster --asg-access]]
 
 
 
https://eksctl.io/usage/creating-and-managing-clusters/
 
https://eksctl.io/usage/creating-and-managing-clusters/
  
== Examples ==
+
Examples:
 
  [[eksctl create]] cluster
 
  [[eksctl create]] cluster
eksctl create cluster 'your-sample-cluster' --spot --instance-types=[[t3.small]]
+
  eksctl create cluster 'your-sample-cluster' --spot --instance-types=[[t3.nano]]
 
 
Cluster will be created but you will face [[MemoryPressure]] errors when running [[pods]].
 
  eksctl create cluster 'your-sample-cluster' --spot --instance-types=[[t3.nano]]  
 
 
 
 
 
 
  eksctl create cluster 'your-sample-cluster' --zones us-east-1a,us-east-1b,us-east-1c
 
  eksctl create cluster 'your-sample-cluster' --zones us-east-1a,us-east-1b,us-east-1c
 
  eksctl create cluster -f cluster.yaml
 
  eksctl create cluster -f cluster.yaml
Line 22: Line 13:
  
  
[[envsubst]] < cluster-config.yaml | [[eksctl create cluster -f]] - <ref>https://aws.amazon.com/blogs/containers/start-pods-faster-by-prefetching-images/</ref>
+
  eksctl create cluster 'your-sample-cluster' --zones us-east-1a,us-east-1b,us-east-1c
 
 
 
 
  eksctl create cluster 'your-sample-cluster' --zones [[us-east-1a]],us-east-1b,us-east-1c
 
 
  (It will take approximately 20 minutes to finish)
 
  (It will take approximately 20 minutes to finish)
  
  eksctl create cluster \
+
Output with errors:
  --name your-cluster-name \
+
2021-11-12 20:43:10 [ℹ] eksctl version 0.73.0
  --version 1.21 \
+
2021-11-12 20:43:10 [ℹ]  using region us-east-1
  [[--nodegroup-name]] standard-workers \
+
2021-11-12 20:43:11 [ℹ]  setting availability zones to [us-east-1e us-east-1f]
  --node-type t5.large \
+
2021-11-12 20:43:11 [ℹ]  subnets for us-east-1e - public:192.168.0.0/19 private:192.168.64.0/19
  --nodes 6 \
+
  2021-11-12 20:43:11 [ℹ]  subnets for us-east-1f - public:192.168.32.0/19 private:192.168.96.0/19
  --nodes-min 5 \
+
2021-11-12 20:43:11 [ℹ]  nodegroup "ng-a832f99e" will use "" [AmazonLinux2/1.21]
  --nodes-max 8 \
+
  2021-11-12 20:43:11 [ℹ]  using Kubernetes version 1.21
  --[[alb-ingress-access]]
+
  2021-11-12 20:43:11 [ℹ]  creating EKS cluster "wonderful-sheepdog-1636746186" in "us-east-1" region with managed nodes
 
+
2021-11-12 20:43:11 [ℹ]  will create 2 separate CloudFormation stacks for cluster itself and the initial managed nodegroup
== [[eksctl create cluster execution examples]] ==
+
2021-11-12 20:43:11 [ℹ]  if you encounter any issues, check CloudFormation console or try '[[eksctl utils describe-stacks]] --region=us-east-1 --cluster=wonderful-sheepdog-1636746186'
 
+
2021-11-12 20:43:11 [ℹ]  CloudWatch logging will not be enabled for cluster "wonderful-sheepdog-1636746186" in "us-east-1"
== [[eksctl create cluster output with errors]] ==
+
  2021-11-12 20:43:11 [ℹ]  you can enable it with '[[eksctl utils update-cluster-logging]] --enable-types={SPECIFY-YOUR-LOG-TYPES-HERE (e.g. all)} --region=us-east-1 --cluster=wonderful-sheepdog-1636746186'
 +
2021-11-12 20:43:11 [ℹ]  Kubernetes API endpoint access will use default of {publicAccess=true, privateAccess=false} for cluster "wonderful-sheepdog-1636746186" in "us-east-1"
 +
  2021-11-12 20:43:11 [ℹ]
 +
  2 sequential tasks: { create cluster control plane "wonderful-sheepdog-1636746186",
 +
    2 sequential sub-tasks: {
 +
        wait for control plane to become ready,
 +
        create managed nodegroup "ng-a832f99e",
 +
    }
 +
}
 +
  2021-11-12 20:43:11 [ℹ]  building cluster stack "eksctl-wonderful-sheepdog-1636746186-cluster"
 +
  2021-11-12 20:43:12 [ℹ]  deploying stack "eksctl-wonderful-sheepdog-1636746186-cluster"
 +
2021-11-12 20:43:42 [ℹ]  [[waiting for CloudFormation stack]] "eksctl-wonderful-sheepdog-1636746186-cluster"
 +
2021-11-12 20:44:13 [ℹ]  waiting for CloudFormation stack "eksctl-wonderful-sheepdog-1636746186-cluster"
 +
2021-11-12 20:44:14 [✖]  unexpected status "[[ROLLBACK_IN_PROGRESS]]" while waiting for CloudFormation stack "eksctl-wonderful-sheepdog-1636746186-cluster"
 +
2021-11-12 20:44:14 [ℹ]  fetching stack events in attempt to troubleshoot the root cause of the failure
 +
2021-11-12 20:44:14 [✖] AWS::EC2::SubnetRouteTableAssociation/RouteTableAssociationPrivateUSEAST1E: [[CREATE_FAILED]] – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖]  AWS::EC2::NatGateway/NATGateway: [[CREATE_FAILED]] – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖]  AWS::EC2::SubnetRouteTableAssociation/RouteTableAssociationPublicUSEAST1F: CREATE_FAILED – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖] AWS::EC2::SubnetRouteTableAssociation/RouteTableAssociationPrivateUSEAST1F: CREATE_FAILED – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖]  AWS::EC2::Route/PublicSubnetRoute: CREATE_FAILED – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖]  AWS::EC2::SubnetRouteTableAssociation/RouteTableAssociationPublicUSEAST1E: CREATE_FAILED – "Resource creation cancelled"
 +
2021-11-12 20:44:14 [✖]  AWS::EKS::Cluster/ControlPlane: CREATE_FAILED – "Resource handler returned message: \"Cannot create cluster 'wonderful-sheepdog-
 +
1636746186' because us-east-1e, the targeted availability zone, does not currently have sufficient capacity to support the cluster. Retry and choose from these
 +
availability zones: us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1f (Service: Eks, Status Code: 400, Request ID: 0a041b95-8225-4e1e-a637-
 +
c8fbf6ecedf3, Extended Request ID: null)\" (RequestToken: xxxxecbbd-b6de-xxx-e1d5-c0e5a40b2569, HandlerErrorCode: InvalidRequest)"
 +
2021-11-12 20:44:14 [!] 1 error(s) occurred and cluster hasn't been created properly, you may wish to check CloudFormation console
 +
2021-11-12 20:44:14 [ℹ] to cleanup resources, run 'eksctl delete cluster --region=us-east-1 --name=wonderful-sheepdog-1636746186'
 +
2021-11-12 20:44:14 [✖]  ResourceNotReady: failed waiting for successful resource state
 +
Error: failed to create cluster "wonderful-sheepdog-1636746186"
  
 
== Related ==
 
== Related ==
Line 55: Line 71:
 
* <code>[[eksctl utils describe-stacks]]</code>
 
* <code>[[eksctl utils describe-stacks]]</code>
 
* <code>[[eksctl utils update-cluster-logging]]</code>
 
* <code>[[eksctl utils update-cluster-logging]]</code>
* [[Kubernetes installation]]
 
* [[ServiceRoleARN]]
 
* <code>[[kops create cluster]]</code>
 
  
 
== See also ==
 
== See also ==
* {{eksctl create}}
 
 
* {{eksctl}}
 
* {{eksctl}}
* {{K8s installation}}
 
  
 
[[Category:eksctl]]
 
[[Category:eksctl]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: