1. 首先准备好配置cluster的yaml文件,然后运行eksctl create cluster -f xxx.yaml
eksctl create cluster -f airlfow-eks-cluster.yaml
2021-05-28 16:58:28 [ℹ] eksctl version 0.49.0
2021-05-28 16:58:28 [ℹ] using region ap-southeast-2
2021-05-28 16:58:29 [✔] using existing VPC (vpc-066d3172d72904477) and subnets (private:map[ap-southeast-2b:{subnet-0be49cf5afa5e642d ap-southeast-2b 10.61.145.0/24} ap-southeast-2c:{subnet-0807604d22ab8b320 ap-southeast-2c 10.61.146.0/24}] public:map[ap-southeast-2b:{subnet-0e2b5e3453041892c ap-southeast-2b 10.61.149.0/24} ap-southeast-2c:{subnet-0746394b082454a57 ap-southeast-2c 10.61.148.0/24}])
2021-05-28 16:58:29 [!] custom VPC/subnets will be used; if resulting cluster doesn't function as expected, make sure to review the configuration of VPC/subnets
2021-05-28 16:58:29 [ℹ] using EC2 key pair "airflow-worker-empower"
2021-05-28 16:58:29 [ℹ] using EC2 key pair "airflow-worker-empower"
2021-05-28 16:58:29 [ℹ] using Kubernetes version 1.19
2021-05-28 16:58:29 [ℹ] creating EKS cluster "airflow-eks-cluster" in "ap-southeast-2" region with managed nodes
2021-05-28 16:58:29 [ℹ] 2 nodegroups (managed-ng-preprocess-task, managed-ng-preprocess-web) were included (based on the include/exclude rules)
2021-05-28 16:58:29 [ℹ] will create a CloudFormation stack for cluster itself and 0 nodegroup stack(s)
2021-05-28 16:58:29 [ℹ] will create a CloudFormation stack for cluster itself and 2 managed nodegroup stack(s)
2021-05-28 16:58:29 [ℹ] if you encounter any issues, check CloudFormation console or try 'eksctl utils describe-stacks --region=ap-southeast-2 --cluster=airflow-eks-cluster'
2021-05-28 16:58:29 [ℹ] CloudWatch logging will not be enabled for cluster "airflow-eks-cluster" in "ap-southeast-2"
2021-05-28 16:58:29 [ℹ] you can enable it with 'eksctl utils update-cluster-logging --enable-types={SPECIFY-YOUR-LOG-TYPES-HERE (e.g. all)} --region=ap-southeast-2 --cluster=airflow-eks-cluster'
2021-05-28 16:58:29 [ℹ] Kubernetes API endpoint access will use default of {publicAccess=true, privateAccess=false} for cluster "airflow-eks-cluster" in "ap-southeast-2"
2021-05-28 16:58:29 [ℹ] 2 sequential tasks: { create cluster control plane "airflow-eks-cluster", 3 sequential sub-tasks: { wait for control plane to become ready, create addons, 2 parallel sub-tasks: { create managed nodegroup "managed-ng-preprocess-web", create managed nodegroup "managed-ng-preprocess-task" } } }
2021-05-28 16:58:29 [ℹ] building cluster stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 16:58:29 [ℹ] deploying stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 16:58:59 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 16:59:29 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:00:30 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:01:31 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:02:31 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:03:31 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:04:31 [ℹ] waiting for CloudFormation stack "eksctl-airflow-eks-cluster-cluster"
2021-05-28 17:05:31 [ℹ] waiting