I read How to run Serverless Kubernetes: AWS EKS on Fargate, and am wondering what the equivalent option for
--fargate is in a config schema shown in Config file schema? I tried
$ eksctl create cluster --fargate -f config.yaml Error: cannot use --fargate when --config-file/-f is set
I used this sample config file from Creating a cluster with Fargate support using a config file, but nowhere does is say where to set an equivalent
--fargate option. Sure my cluster came up, but
coredns Deployment was set up for
ec2 instead of
fargate so the pods would never deploy. IOW
$ kubectl get deployment coredns -o yaml apiVersion: v1 kind: Deployment metadata: annotations: ... eks.amazonaws.com/compute-type: ec2 spec: ... template: metadata: annotations: eks.amazonaws.com/compute-type: ec2
I had to
$ kubectl edit deployment coredns
and set the option this way.
It took me 2 days to debug this (I'm new to Kubernetes) so it would've have been to nice to have been able to do this in the config file.