<p>I'm creating EKS cluster using the <a href="https://eksctl.io/" rel="nofollow noreferrer">eksctl</a>. While developing the yaml configurations for the underlying resources, I came to know that spot instance is also supported with AWS EKS cluster(<a href="https://eksctl.io/usage/spot-instances/" rel="nofollow noreferrer">here</a>). However while referring the <a href="https://eksctl.io/usage/schema/" rel="nofollow noreferrer">documentation/schema</a>, I didn't find anything to limit the bidding price for spot instance. So by default, it will bid with on demand pricing which is not ideal. Am I missing anything here or it's just not possible at the moment?</p>
<p>Sample yaml config for spot(cluster-config-spot.yaml)  -</p>
<pre><code>apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
  name: spot-cluster
  region: us-east-2
  version: &quot;1.23&quot;
managedNodeGroups :
  - name: spot-managed-node-group-1
    instanceType: [&quot;c7g.xlarge&quot;,&quot;c6g.xlarge&quot;]
    minSize: 1
    maxSize: 10
    spot: true
</code></pre>
<p>AWS EKS cluster creation command -</p>
<pre><code>eksctl create cluster -f cluster-config-spot.yaml
</code></pre>

Swanand
<p><code>maxPrice</code> can be set for self-managed node group <a href="https://eksctl.io/usage/spot-instances/#unmanaged-nodegroups" rel="nofollow noreferrer">this way</a>; but this is not supported for managed node group. You can upvote the feature <a href="https://github.com/aws/containers-roadmap/issues/1575" rel="nofollow noreferrer">here</a>.</p>
