solo-io / workshops

Apache License 2.0
127 stars 72 forks source link

eks_clusters #58

Closed jmunozro closed 3 years ago

jmunozro commented 3 years ago
eks_clusters = {
  workshop-a = {
    num_instances = 2
    azs_workers   = ["eu-west-1a"]
  }
  workshop-b = {
    num_instances = 2
    azs_workers   = ["eu-west-1b"]
  }
}

This block will produce 2 clusters in eu-west-1a and 2 cluster in eu-west-1b, for a total of 4 clusters. In addition, a local folder 'output' is created with the kubeconfig of every cluster. The creation is slow, this example took 12m: image

$ kubectl --kubeconfig=./output/jesus-test-workshop-b-2/kubeconfig-jesus-test-workshop-b-2 get nodes -A -owide
NAME                                       STATUS   ROLES    AGE     VERSION              INTERNAL-IP   EXTERNAL-IP    OS-IMAGE         KERNEL-VERSION                CONTAINER-RUNTIME
ip-10-0-2-108.eu-west-1.compute.internal   Ready    <none>   7m34s   v1.20.4-eks-6b7464   10.0.2.108    54.195.22.44   Amazon Linux 2   5.4.117-58.216.amzn2.x86_64   docker://19.3.13