Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.10.2 Not supporting Spot Instances? #1600

Closed
techtransplant opened this issue Nov 24, 2019 · 3 comments
Closed

v0.10.2 Not supporting Spot Instances? #1600

techtransplant opened this issue Nov 24, 2019 · 3 comments
Labels

Comments

@techtransplant
Copy link

What happened?
I ran eksctl create cluster -f cluster.yaml and got this error:

2019-11-23T16:10:03-08:00 [✖]  loading config file "cluster.yaml": error unmarshaling JSON: while decoding JSON: json: unknown field "instancesDistribution"

What you expected to happen?
I should be able to configure my cluster to use spot instances, as I could in previous versions of eksctl

How to reproduce it?
Use this yaml config and do eksctl create cluster -f cluster.yaml

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
  name: lee
  region: us-west-2
  version: "1.14"

managedNodeGroups:
  - name: managed-ng-1
    minSize: 2
    maxSize: 5
    volumeSize: 100
    volumeType: gp2
    instancesDistribution:
      instanceTypes: ["m5.large", "m5.xlarge"]
      onDemandPercentageAboveBaseCapacity: 0
      
    ssh:
      allow: true

    kubeletExtraConfig:
      kubeReserved:
        cpu: "300m"
        memory: "300Mi"
        ephemeral-storage: "1Gi"
      kubeReservedCgroup: "/kube-reserved"
      systemReserved:
        cpu: "300m"
        memory: "300Mi"
        ephemeral-storage: "1Gi"
      evictionHard:
        memory.available: "200Mi"
        nodefs.available: "10%"
      featureGates:
        DynamicKubeletConfig: true
        RotateKubeletServerCertificate: true

    tags:
      nodegroup-role: worker
      k8s.io/cluster-autoscaler/enabled: "true"
      k8s.io/cluster-autoscaler/lee: "owned"

    iam:
      withAddonPolicies:
        autoScaler: true

Anything else we need to know?
What OS are you using, are you using a downloaded binary or did you compile eksctl, what type of AWS credentials are you using (i.e. default/named profile, MFA) - please don't include actual credentials though!

Versions
Please paste in the output of these commands:

$ eksctl version
[ℹ]  version.Info{BuiltAt:"", GitCommit:"", GitTag:"0.10.2"}
$ kubectl version
Client Version: v1.16.3
@techtransplant
Copy link
Author

Ok, I see that instancesDistribution field is not supported in the docs. Does that mean managed nodegroups cannot use spot instances?

@fmedery
Copy link

fmedery commented Nov 25, 2019

@EightLimbed you are correct.
You can follow the status of this feature here: aws/containers-roadmap#583

@techtransplant
Copy link
Author

thanks for explaining @fmedery -- I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants