官网
bash
https://docs.aws.amazon.com/zh_cn/eks/latest/userguide/delete-cluster.html
eksctl 官网
bash
https://eksctl.io/usage/vpc-networking/
指定vpc网段
bash
#####
## eksctl create cluster -f cluster.yml
### cluster.yml
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: my-cluster
region: us-west-2
vpc:
cidr: 192.168.0.0/16
managedNodeGroups:
- name: ng-1
instanceType: t3.medium
desiredCapacity: 3
minSize: 1
maxSize: 4
删除集群
bash
kubectl delete svc service-name
##
eksctl delete cluster --name prod